8206355: SSLSessionImpl.getLocalPrincipal() throws NPE

Fixed SSLSessionImpl.getLocalPrincipal() implementation when client side authentication is not enabled.

Reviewed-by: xuelei
2 files changed