Description
In HttpServe2, if the trustStore is set but the trust store password is not, then we set the TrustStorePassword of SSLContextFactory to null. This results in the Jetty server not starting up.
In HttpServer2#createHttpsChannelConnector(), if (trustStore != null) { sslContextFactory.setTrustStorePath(trustStore); sslContextFactory.setTrustStoreType(trustStoreType); sslContextFactory.setTrustStorePassword(trustStorePassword); }
Before setting the trust store password, we should check that it is not null.