summaryrefslogtreecommitdiffstats
path: root/aai-service/provider/src/main
diff options
context:
space:
mode:
authorChandan Ghosh <cghosh12@in.ibm.com>2018-11-29 17:21:37 +0530
committerChandan Ghosh <cghosh12@in.ibm.com>2018-11-29 17:21:44 +0530
commit806ebbbc633941654e20326adb7c8b08bff47cfb (patch)
tree529b457408e0003ecfbfaf6842832f944f0053f8 /aai-service/provider/src/main
parent6eb11a73f23b46e94f4209687a368dc1396e5404 (diff)
Added fix for potential nullpointerexception
Added fix for potential nullpointerexception reported in sonar Issue-ID: CCSDK-767 Change-Id: I92a363ded79ea282c24216b525c8567492a53e17 Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
Diffstat (limited to 'aai-service/provider/src/main')
-rwxr-xr-xaai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIService.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIService.java
index bfed619c6..78b0f0eb2 100755
--- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIService.java
+++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIService.java
@@ -285,7 +285,9 @@ public class AAIService extends AAIDeclarations implements AAIClient, SvcLogicRe
LOG.error("AAIResource", ex);
}
- ctx.init(kmf.getKeyManagers(), null, null);
+ if(null!=kmf) {
+ ctx.init(kmf.getKeyManagers(), null, null);
+ }
config.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES, new HTTPSProperties( new HostnameVerifier() {
@Override
public boolean verify( String s, SSLSession sslSession ) {