diff options
author | James Moger <james.moger@gitblit.com> | 2014-05-01 19:53:53 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-01 19:53:53 -0400 |
commit | fdd82f02dddd2d4211e9df4239f3be6c8595b2dd (patch) | |
tree | 3444acccd2a9b9733eb9a47e3c6677a0cf96706e /src/main/java/com/gitblit/wicket/WicketUtils.java | |
parent | 5506507a3d164b942a03eb7d439332b8fcda6713 (diff) | |
download | gitblit-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.java | 4 |
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);
}
|