James Moger
2013-07-15 8f6e672ffe19c439aadc07b64e36ae4b83e78f1e
Fixed url panel failure when there are no repository urls (issue-269)
2 files modified
5 ■■■■■ changed files
releases.moxie 3 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java 2 ●●● patch | view | raw | blame | history
releases.moxie
@@ -9,7 +9,8 @@
    html: ~
    text: ~
    security: ~
    fixes: ~
    fixes:
    - Gitblit-as-viewer with no repository urls failed to display summary page (issue 269)
    changes: ~
    additions: ~
    dependencyChanges: ~
src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java
@@ -85,7 +85,7 @@
        // grab primary url from the top of the list
        primaryUrl = repositoryUrls.size() == 0 ? null : repositoryUrls.get(0);
        boolean canClone = ((primaryUrl.permission == null) || primaryUrl.permission.atLeast(AccessPermission.CLONE));
        boolean canClone = primaryUrl != null && ((primaryUrl.permission == null) || primaryUrl.permission.atLeast(AccessPermission.CLONE));
        if (repositoryUrls.size() == 0 || !canClone) {
            // no urls, nothing to show.