diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/CacheBasedWebSession.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/CacheBasedWebSession.java index 232231f9b0..d315fa3a97 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/CacheBasedWebSession.java +++ b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/CacheBasedWebSession.java @@ -68,7 +68,8 @@ public abstract class CacheBasedWebSession implements WebSession { this.anonymousProvider = anonymousProvider; this.identified = identified; - if (!GitSmartHttpTools.isGitClient(request)) { + if (request.getRequestURI() == null + || !GitSmartHttpTools.isGitClient(request)) { String cookie = readCookie(); if (cookie != null) { key = new Key(cookie);