Java8ExtendedSSLSession getRequestedServerNames returns null instead of empty list, in case the delegate returns null.
According to the documentation in ExtendedSSLSession, this method should return a non-null list.
This causes a null pointer exception in sun.security.ssl.X509TrustManagerImpl, causing the handshake to fail.