Issue #1229 - ClassLoader constraint issue when using NativeWebSocketConfiguration with WEB-INF/lib/jetty-http.jar present.

Guarded against NPE.
This commit is contained in:
Simone Bordet 2017-01-20 15:41:41 +01:00
parent 51f68dc57e
commit 9653d74cae
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ public class ServletPathSpec extends PathSpec
{
public ServletPathSpec(String servletPathSpec)
{
if (servletPathSpec == null)
servletPathSpec = "";
if (servletPathSpec.startsWith("servlet|"))
servletPathSpec = servletPathSpec.substring("servlet|".length());
assertValidServletPathSpec(servletPathSpec);