diff options
author | James Moger <james.moger@gitblit.com> | 2013-01-02 16:19:06 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-01-02 16:19:06 -0500 |
commit | 46bdf9829d62a296c66c8a15969308838ea8cbe9 (patch) | |
tree | 359f35545b93fb55489d45d18849ad796784255b /src | |
parent | d7eb67bba682c4c59fb2480d9e1830c8477ce71e (diff) | |
download | gitblit-46bdf9829d62a296c66c8a15969308838ea8cbe9.tar.gz gitblit-46bdf9829d62a296c66c8a15969308838ea8cbe9.zip |
Fixed NPE with web.allowForking && !git.cacheRepositoryList (issue-182)
Diffstat (limited to 'src')
-rw-r--r-- | src/com/gitblit/GitBlit.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/gitblit/GitBlit.java b/src/com/gitblit/GitBlit.java index 076bb765..b497737f 100644 --- a/src/com/gitblit/GitBlit.java +++ b/src/com/gitblit/GitBlit.java @@ -1739,7 +1739,7 @@ public class GitBlit implements ServletContextListener { ProjectModel project = getProjectModel(userProject);
for (String repository : project.repositories) {
if (repository.startsWith(userProject)) {
- RepositoryModel model = repositoryListCache.get(repository);
+ RepositoryModel model = getRepositoryModel(repository);
if (model.originRepository.equalsIgnoreCase(origin)) {
// user has a fork
return model.name;
|