Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2015-07-30 13:48:38 -0400
committerSimone Bordet2015-07-30 13:48:38 -0400
commit2a4095590dd248d3b10c43bca033c3658b866ea2 (patch)
tree4b0fa4182cd784977e44579cd40c1771815f80a9 /jetty-servlets
parent0753d1ce3cf624f46db95432cd8970cd33a7dd09 (diff)
downloadorg.eclipse.jetty.project-2a4095590dd248d3b10c43bca033c3658b866ea2.tar.gz
org.eclipse.jetty.project-2a4095590dd248d3b10c43bca033c3658b866ea2.tar.xz
org.eclipse.jetty.project-2a4095590dd248d3b10c43bca033c3658b866ea2.zip
473955 - NPE in PushCacheFilter.
Fixed by normalizing to "/" the missing path of a referrer URI.
Diffstat (limited to 'jetty-servlets')
-rw-r--r--jetty-servlets/src/main/java/org/eclipse/jetty/servlets/PushCacheFilter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/PushCacheFilter.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/PushCacheFilter.java
index 9928eb2b4e..d6710d74db 100644
--- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/PushCacheFilter.java
+++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/PushCacheFilter.java
@@ -173,6 +173,8 @@ public class PushCacheFilter implements Filter
if ("GET".equalsIgnoreCase(request.getMethod()))
{
String referrerPath = referrerURI.getPath();
+ if (referrerPath == null)
+ referrerPath = "/";
if (referrerPath.startsWith(request.getContextPath()))
{
String referrerPathNoContext = referrerPath.substring(request.getContextPath().length());

Back to the top