NPE fix for NULL_SESSION
@@ -159,7 +159,7 @@ public int getPacketBufferSize()
@SuppressWarnings("deprecation")
public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
{
- if (sslSessionContext.getSSLContext().isFips())
+ if (null != sslSessionContext && sslSessionContext.getSSLContext().isFips())
{
throw new UnsupportedOperationException();
}
