소스 검색

Fixed url panel failure when there are no repository urls (issue 269)

tags/v1.3.1
James Moger 10 년 전
부모
커밋
8f6e672ffe
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    1
      releases.moxie
  2. 1
    1
      src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java

+ 2
- 1
releases.moxie 파일 보기

@@ -9,7 +9,8 @@ r18: {
html: ~
text: ~
security: ~
fixes: ~
fixes:
- Gitblit-as-viewer with no repository urls failed to display summary page (issue 269)
changes: ~
additions: ~
dependencyChanges: ~

+ 1
- 1
src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java 파일 보기

@@ -85,7 +85,7 @@ public class RepositoryUrlPanel extends BasePanel {
// 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.

Loading…
취소
저장