summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/WicketUtils.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-05-01 19:53:53 -0400
committerJames Moger <james.moger@gitblit.com>2014-05-01 19:53:53 -0400
commitfdd82f02dddd2d4211e9df4239f3be6c8595b2dd (patch)
tree3444acccd2a9b9733eb9a47e3c6677a0cf96706e /src/main/java/com/gitblit/wicket/WicketUtils.java
parent5506507a3d164b942a03eb7d439332b8fcda6713 (diff)
downloadgitblit-fdd82f02dddd2d4211e9df4239f3be6c8595b2dd.tar.gz
gitblit-fdd82f02dddd2d4211e9df4239f3be6c8595b2dd.zip
Refactored common code out of My Tickets and Tickets
Diffstat (limited to 'src/main/java/com/gitblit/wicket/WicketUtils.java')
-rw-r--r--src/main/java/com/gitblit/wicket/WicketUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/WicketUtils.java b/src/main/java/com/gitblit/wicket/WicketUtils.java
index 2a34ca80..10b21468 100644
--- a/src/main/java/com/gitblit/wicket/WicketUtils.java
+++ b/src/main/java/com/gitblit/wicket/WicketUtils.java
@@ -300,7 +300,9 @@ public class WicketUtils {
public static PageParameters newRepositoryParameter(String repositoryName) {
Map<String, String> parameterMap = new HashMap<String, String>();
- parameterMap.put("r", repositoryName);
+ if (!StringUtils.isEmpty(repositoryName)) {
+ parameterMap.put("r", repositoryName);
+ }
return new PageParameters(parameterMap);
}