What steps will reproduce the problem?
Trying to display the summary page of a repo causes a NPE. (All other pages for the
repo worked.)
Checking the code (https://code.google.com/p/gitblit/source/browse/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java?name=v1.3.0)showed
the obvious error.
primaryUrl = repositoryUrls.size() == 0 ? null : repositoryUrls.get(0);
LINE 88: NPE =>> boolean canClone = ((primaryUrl.permission == null) || primaryUrl.permission.atLeast(AccessPermission.CLONE));
primaryUrl will be null if repositoryUrls.size() == 0
accessing primaryUrl.permission will throw a NPE.
Reported by RAlfoeldi on 2013-07-15 08:26:57
The text was updated successfully, but these errors were encountered:
Setting
git.enableGitServlet = false
(probably) causes no urls and the above NPE.
Setting git.enableGitServlet = true "solves" the problem.
As I'm using gitblit only as a git "viewer" this isn't really an option.
Originally reported on Google Code with ID 269
Reported by
RAlfoeldi
on 2013-07-15 08:26:57The text was updated successfully, but these errors were encountered: