Added exception catch while setting description on schema creation

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@142210 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-02-03 17:10:46 +00:00
parent 6fdb2b2542
commit 97b77f36c6
1 changed files with 5 additions and 1 deletions

View File

@ -202,7 +202,11 @@ public class SchemaManagementImpl implements SchemaManagement {
} }
if (typeDefinition.getDescription() != null) { if (typeDefinition.getDescription() != null) {
oClass.setDescription(typeDefinition.getDescription()); try {
oClass.setDescription(typeDefinition.getDescription());
}catch (Exception e) {
logger.warn("Unable to set description. This is an orient bug. See https://github.com/orientechnologies/orientdb/issues/7065");
}
} }
try { try {