summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-07-03 10:49:31 -0400
committerJames Moger <james.moger@gitblit.com>2013-07-03 10:49:31 -0400
commitd9d4677aa4f4774dddd57a6a9aef28931c8f3f5e (patch)
tree2f0e66a6b7e9bee5e5c6302a45d119ceecf79d19 /src
parentcf2ef78a8acd56363991c234830a7fe3f9d63651 (diff)
downloadgitblit-d9d4677aa4f4774dddd57a6a9aef28931c8f3f5e.tar.gz
gitblit-d9d4677aa4f4774dddd57a6a9aef28931c8f3f5e.zip
Fix NPE when viewing a federation proposal (issue 195)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java b/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java
index 726af61d..e0f93934 100644
--- a/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java
+++ b/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java
@@ -132,7 +132,7 @@ public class RepositoriesPanel extends BasePanel {
for (String root : roots) {
List<RepositoryModel> subModels = groups.get(root);
ProjectModel project = GitBlit.self().getProjectModel(root);
- GroupRepositoryModel group = new GroupRepositoryModel(project.name, subModels.size());
+ GroupRepositoryModel group = new GroupRepositoryModel(project == null ? root : project.name, subModels.size());
if (project != null) {
group.title = project.title;
group.description = project.description;