From c48d6919b00989e0927b503c16f8ca12464cf367 Mon Sep 17 00:00:00 2001 From: Jegadeesh Babu Date: Wed, 13 Feb 2019 19:23:19 +0530 Subject: 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 --- .../org/onap/appc/encryptiontool/wrapper/WrapperEncryptionTool.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'appc-config/appc-encryption-tool/provider/src') 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(); } } -- cgit 1.2.3-korg