summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Aistleitner <christian@quelltextlich.at>2013-03-25 01:42:23 +0100
committerChristian Aistleitner <christian@quelltextlich.at>2013-03-25 01:42:23 +0100
commitce3f4bd24c330e0cace6a31567e1516dfaa66234 (patch)
tree884ba35f7bfff72f4e49037baeed903bee05ff5a /src
parentc7acc2e1fa86102bb87e715c8fe4e336329fbcc6 (diff)
downloadgitblit-ce3f4bd24c330e0cace6a31567e1516dfaa66234.tar.gz
gitblit-ce3f4bd24c330e0cace6a31567e1516dfaa66234.zip
Fix NPE when getting user's fork without repository list caching (issue-182)
When a user does not have a fork of a project, getProjectModel returns null. So we guard against null before dereferencing the returned project.
Diffstat (limited to 'src')
-rw-r--r--src/com/gitblit/GitBlit.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/gitblit/GitBlit.java b/src/com/gitblit/GitBlit.java
index 6bf75d75..bb9b988f 100644
--- a/src/com/gitblit/GitBlit.java
+++ b/src/com/gitblit/GitBlit.java
@@ -1827,6 +1827,9 @@ public class GitBlit implements ServletContextListener {
} else {
// not caching
ProjectModel project = getProjectModel(userProject);
+ if (project == null) {
+ return null;
+ }
for (String repository : project.repositories) {
if (repository.startsWith(userProject)) {
RepositoryModel model = getRepositoryModel(repository);
mated/noid/stable27-fix-npm-audit Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/core/l10n/su.json
blob: 2a3622611844b930b5124195147ba26bbe66e71a (plain)
1
2
3
4
5
6
{ "translations": {
    "_{count} file conflict_::_{count} file conflicts_" : [""],
    "_download %n file_::_download %n files_" : [""],
    "_{count} search result in other places_::_{count} search results in other places_" : [""]
},"pluralForm" :"nplurals=1; plural=0;"
}