summaryrefslogtreecommitdiffstats
path: root/appc-config
diff options
context:
space:
mode:
authorKrishnajinka <kris.jinka@samsung.com>2018-07-06 17:28:54 +0900
committerTakamune Cho <tc012c@att.com>2018-07-10 14:40:24 +0000
commitec248ffb74f1c038fdd6c7a77411f628ef51366f (patch)
treea790240451325798417300472b31a86993987160 /appc-config
parent72dbb19dd424ef559422bd0243d6a3179e01c382 (diff)
null ptr check
rework based on review comments Issue-ID: APPC-1047 Change-Id: Ia87707535dc5825d18a6c35fdae416064dcb8c14 Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
Diffstat (limited to 'appc-config')
-rw-r--r--appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/WrapperEncryptionTool.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/WrapperEncryptionTool.java b/appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/WrapperEncryptionTool.java
index f71bee1ec..86b0861cb 100644
--- a/appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/WrapperEncryptionTool.java
+++ b/appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/WrapperEncryptionTool.java
@@ -105,10 +105,11 @@ public class WrapperEncryptionTool {
log.debug("Caught Exception", e);
log.info("Caught exception", e);
log.info("APPC-MESSAGE:" + e.getMessage());
- dbResourceManager.cleanUp();
-
} finally {
- dbResourceManager.cleanUp();
+ //When dbResourceManager is not created then no need to cleanup
+ if (dbResourceManager != null) {
+ dbResourceManager.cleanUp();
+ }
}
}