summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/manager/RepositoryManager.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-12-11 11:01:37 -0500
committerJames Moger <james.moger@gitblit.com>2013-12-11 11:01:37 -0500
commitb57d3e7e34d98042533369790d9f51462b04f9c0 (patch)
tree8c730c273af3cd728c3a1e8df62afb9ec545f9ad /src/main/java/com/gitblit/manager/RepositoryManager.java
parent7127dfb2def0c43abb38bc363e3f76fded881bf0 (diff)
downloadgitblit-b57d3e7e34d98042533369790d9f51462b04f9c0.tar.gz
gitblit-b57d3e7e34d98042533369790d9f51462b04f9c0.zip
Fix NPE in getting a user's fork if repository caching is disabled
Change-Id: I10e90f54964daa32d954b47a8a6d54267b215222
Diffstat (limited to 'src/main/java/com/gitblit/manager/RepositoryManager.java')
-rw-r--r--src/main/java/com/gitblit/manager/RepositoryManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/manager/RepositoryManager.java b/src/main/java/com/gitblit/manager/RepositoryManager.java
index d24a06db..afa96b20 100644
--- a/src/main/java/com/gitblit/manager/RepositoryManager.java
+++ b/src/main/java/com/gitblit/manager/RepositoryManager.java
@@ -979,7 +979,7 @@ public class RepositoryManager implements IRepositoryManager {
settings.getStrings(Keys.git.searchExclusions));
for (String repository : repositories) {
RepositoryModel model = getRepositoryModel(userProject + "/" + repository);
- if (model.originRepository.equalsIgnoreCase(origin)) {
+ if (model.originRepository != null && model.originRepository.equalsIgnoreCase(origin)) {
// user has a fork
return model.name;
}