From fecaee352c9cd886ed638f515f6327815242bb72 Mon Sep 17 00:00:00 2001 From: "manuele.simi" Date: Sat, 10 Mar 2018 22:51:48 +0000 Subject: [PATCH] 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 --- .../manager/webapp/context/DeleteRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/context/DeleteRequest.java b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/context/DeleteRequest.java index 1d02372..6aee09e 100644 --- a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/context/DeleteRequest.java +++ b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/context/DeleteRequest.java @@ -34,7 +34,7 @@ public final class DeleteRequest extends RequestToResourceRegistry { if (!queries.contextExists(context)) { throw new LocalCodeException(RMDeleteContextCode.CONTEXT_DOES_NOT_EXIST); } - if (queries.isContextEmpty(context)) { + if (!queries.isContextEmpty(context)) { throw new LocalCodeException(RMDeleteContextCode.CONTEXT_IS_NOT_EMPTY); } }