#### fixes\r
\r
- Fixed nullpointer on recursively calculating folder sizes when there is a named pipe or symlink in the hierarchy\r
+- Added nullchecking when concurrently forking a repository and trying to display it's fork network (issue-187)\r
- Fixed bug where permission changes were not visible in the web ui to a logged-in user until the user logged-out and then logged back in again (issue-186)\r
- Fixed nullpointer on creating a repository with mixed case (issue 185)\r
- Fixed nullpointer when using web.allowForking = true && git.cacheRepositoryList = false (issue 182)\r
\r
private ForkModel getForkModelFromCache(String repository) {\r
RepositoryModel model = repositoryListCache.get(repository.toLowerCase());\r
+ if (model == null) {\r
+ return null;\r
+ }\r
ForkModel fork = new ForkModel(model);\r
if (!ArrayUtils.isEmpty(model.forks)) {\r
for (String aFork : model.forks) {\r
ForkModel fm = getForkModelFromCache(aFork);\r
- fork.forks.add(fm);\r
+ if (fm != null) {\r
+ fork.forks.add(fm);\r
+ }\r
}\r
}\r
return fork;\r
\r
private ForkModel getForkModel(String repository) {\r
RepositoryModel model = getRepositoryModel(repository.toLowerCase());\r
+ if (model == null) {\r
+ return null;\r
+ }\r
ForkModel fork = new ForkModel(model);\r
if (!ArrayUtils.isEmpty(model.forks)) {\r
for (String aFork : model.forks) {\r
ForkModel fm = getForkModel(aFork);\r
- fork.forks.add(fm);\r
+ if (fm != null) {\r
+ fork.forks.add(fm);\r
+ }\r
}\r
}\r
return fork;\r