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:
parent
0bdbd4d6f1
commit
fecaee352c
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue