diff options
author | Jegadeesh Babu <jegabab1@in.ibm.com> | 2019-02-13 19:23:19 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-02-14 14:20:42 +0000 |
commit | c48d6919b00989e0927b503c16f8ca12464cf367 (patch) | |
tree | 01e138f8f914d6bd948169a7c99917bb0b5ca8dc /appc-config/appc-encryption-tool | |
parent | a2e8379525676bf48ef13e3ed953c836aa37dd07 (diff) |
Code block added to avoid Null pointer Exception
Added condition to avoid NullPointer Exception
Issue-ID: APPC-1425
Change-Id: I166633ccfcf51a8fcc8d4082aa8d2afa4b299398
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
Diffstat (limited to 'appc-config/appc-encryption-tool')
-rw-r--r-- | appc-config/appc-encryption-tool/provider/src/main/java/org/onap/appc/encryptiontool/wrapper/WrapperEncryptionTool.java | 3 |
1 files changed, 3 insertions, 0 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 1be6967e0..287081764 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 @@ -7,6 +7,7 @@ * Copyright (C) 2017 Amdocs * ================================================================================ * Modifications Copyright (C) 2019 Ericsson + * Modifications Copyright (C) 2019 IBM * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -121,6 +122,7 @@ public class WrapperEncryptionTool { log.info("APPC-MESSAGE:" + e.getMessage()); } finally { + if(dbResourceManager!=null) dbResourceManager.cleanUp(); } } @@ -166,6 +168,7 @@ public class WrapperEncryptionTool { log.info("APPC-MESSAGE:" + e.getMessage()); } finally { + if(dbResourceManager!=null) dbResourceManager.cleanUp(); } } |