summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/GitBlitServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/gitblit/GitBlitServlet.java')
-rw-r--r--src/com/gitblit/GitBlitServlet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/gitblit/GitBlitServlet.java b/src/com/gitblit/GitBlitServlet.java
index 17642c66..f703cb2e 100644
--- a/src/com/gitblit/GitBlitServlet.java
+++ b/src/com/gitblit/GitBlitServlet.java
@@ -42,7 +42,7 @@ public class GitBlitServlet extends GitServlet {
if (forwardSlash > -1) {
String repository = url.substring(0, forwardSlash);
String function = url.substring(forwardSlash + 1);
- String query = req.getQueryString();
+ String query = req.getQueryString() == null ? "":req.getQueryString();
RepositoryModel model = GitBlit.self().getRepositoryModel(repository);
if (model != null) {
if (model.isFrozen || model.accessRestriction.atLeast(AccessRestrictionType.PUSH)) {