summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-05-19 19:01:45 -0400
committerJames Moger <james.moger@gitblit.com>2011-05-19 19:01:45 -0400
commit9da97003c7f33a64ae5060f413f9c4c5d26efe78 (patch)
treeed8fe5d165d1f4de3c742ec9c319f45a0672517f /src
parentdbc0831e24e391a78e490b892e958a05d7e95116 (diff)
downloadgitblit-9da97003c7f33a64ae5060f413f9c4c5d26efe78.tar.gz
gitblit-9da97003c7f33a64ae5060f413f9c4c5d26efe78.zip
Critical fix for servlet.
Diffstat (limited to 'src')
-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)) {