diff options
author | James Moger <james.moger@gitblit.com> | 2013-07-03 10:49:31 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-07-03 10:49:31 -0400 |
commit | d9d4677aa4f4774dddd57a6a9aef28931c8f3f5e (patch) | |
tree | 2f0e66a6b7e9bee5e5c6302a45d119ceecf79d19 /src | |
parent | cf2ef78a8acd56363991c234830a7fe3f9d63651 (diff) | |
download | gitblit-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.java | 2 |
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;
|