summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-01-02 16:19:06 -0500
committerJames Moger <james.moger@gitblit.com>2013-01-02 16:19:06 -0500
commit46bdf9829d62a296c66c8a15969308838ea8cbe9 (patch)
tree359f35545b93fb55489d45d18849ad796784255b /src
parentd7eb67bba682c4c59fb2480d9e1830c8477ce71e (diff)
downloadgitblit-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.java2
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;