Commit 72aa37a3 authored by Guus der Kinderen's avatar Guus der Kinderen Committed by akrherz

OF-1326: Allow for missing static web content. (#833)

The static web content handler is allowed to be null (when there's no static content to be served). In such case, the null-handler shouldn't be loaded in Jetty (which will throws nullpointers).
parent f8fc9805
......@@ -179,7 +179,11 @@ public final class HttpBindManager implements CertificateEventListener, Property
// When everything else fails, use the static content handler. This one should be last, as it is mapping to the root context.
// This means that it will catch everything and prevent the invocation of later handlers.
this.handlerList.addHandler( createStaticContentHandler() );
final Handler staticContentHandler = createStaticContentHandler();
if ( staticContentHandler != null )
{
this.handlerList.addHandler( staticContentHandler );
}
}
public void start() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment