Fixed bug

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134672 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-11-24 11:28:30 +00:00
parent 635f18f667
commit 62c0d06750
1 changed files with 1 additions and 1 deletions

View File

@ -909,7 +909,7 @@ public class EntityManagementImpl implements EntityManagement {
throw new ResourceRegistryException("Error Updating Facet",
e.getCause());
} finally {
if (orientGraph != null) {
if (orientGraph != null && !orientGraph.isClosed()) {
orientGraph.shutdown();
}
}