Removed throwing of runtime exceptions
[nonrtric.git] / policy-agent / src / main / java / org / oransc / policyagent / repository / Lock.java
index 9f02f08..def2b30 100644 (file)
@@ -117,7 +117,7 @@ public class Lock {
         synchronized (this) {
             if (lockCounter <= 0) {
                 lockCounter = -1; // Might as well stop, to make it easier to find the problem
-                throw new NullPointerException("Number of unlocks must match the number of locks");
+                logger.error("Number of unlocks must match the number of locks");
             }
             this.lockCounter--;
             if (lockCounter == 0) {