Added fix for potential nullpointerexception reported in sonar
Issue-ID: CCSDK-767
Change-Id: I92a363ded79ea282c24216b525c8567492a53e17
Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
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 ) {