Correct inverted check on empty contexts.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@164900 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Manuele Simi 2018-03-10 22:51:48 +00:00
parent 0bdbd4d6f1
commit fecaee352c
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public final class DeleteRequest extends RequestToResourceRegistry {
if (!queries.contextExists(context)) { if (!queries.contextExists(context)) {
throw new LocalCodeException(RMDeleteContextCode.CONTEXT_DOES_NOT_EXIST); throw new LocalCodeException(RMDeleteContextCode.CONTEXT_DOES_NOT_EXIST);
} }
if (queries.isContextEmpty(context)) { if (!queries.isContextEmpty(context)) {
throw new LocalCodeException(RMDeleteContextCode.CONTEXT_IS_NOT_EMPTY); throw new LocalCodeException(RMDeleteContextCode.CONTEXT_IS_NOT_EMPTY);
} }
} }