Browse Source

Fix NPE when viewing a federation proposal (issue 195)

tags/v1.3.0
James Moger 10 years ago
parent
commit
d9d4677aa4
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      releases.moxie
  2. 1
    1
      src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java

+ 1
- 0
releases.moxie View File

@@ -11,6 +11,7 @@ r17: {
- Use bash instead of sh in Linux/OSX shell scripts (issue 154)
- Fix NPE when getting user's fork without repository list caching (issue 182)
- Fix internal error on folder history links (issue 192)
- Fix NPE in repositories panel when viewing a federation proposal (issue 195)
- Fix NPEs when initializing the context on a servlet containers which returns a null contextFolder (issue 199)
- Fixed incorrect icon file name for .doc files (issue 200)
- Do not queue emails with no recipients (issue 201)

+ 1
- 1
src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java View File

@@ -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;

Loading…
Cancel
Save