From: James Moger Date: Wed, 2 Jan 2013 21:19:06 +0000 (-0500) Subject: Fixed NPE with web.allowForking && !git.cacheRepositoryList (issue-182) X-Git-Tag: v1.2.1~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=46bdf9829d62a296c66c8a15969308838ea8cbe9;p=gitblit.git Fixed NPE with web.allowForking && !git.cacheRepositoryList (issue-182) --- diff --git a/docs/04_releases.mkd b/docs/04_releases.mkd index f8a89b79..a5bdb3e1 100644 --- a/docs/04_releases.mkd +++ b/docs/04_releases.mkd @@ -1,14 +1,22 @@ ## Release History +### Current Release + +**%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%) | [war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%) | [express](http://code.google.com/p/gitblit/downloads/detail?name=%EXPRESS%) | [fedclient](http://code.google.com/p/gitblit/downloads/detail?name=%FEDCLIENT%) | [manager](http://code.google.com/p/gitblit/downloads/detail?name=%MANAGER%) | [api](http://code.google.com/p/gitblit/downloads/detail?name=%API%)) based on [%JGIT%][jgit]   *released %BUILDDATE%* + +#### fixes + +- Fixed nullpointer when using web.allowForking = true && git.cacheRepositoryList = false (issue 182) + +### Older Releases +

Update Note

-The permissions model has changed in this release. +The permissions model has changed in the 1.2.0 release.

If you are updating your server, you must also update any Gitblit Manager and Federation Client installs to 1.2.0 as well. The data model used by the RPC mechanism has changed slightly for the new permissions infrastructure.

-### Current Release - -**%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%) | [war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%) | [express](http://code.google.com/p/gitblit/downloads/detail?name=%EXPRESS%) | [fedclient](http://code.google.com/p/gitblit/downloads/detail?name=%FEDCLIENT%) | [manager](http://code.google.com/p/gitblit/downloads/detail?name=%MANAGER%) | [api](http://code.google.com/p/gitblit/downloads/detail?name=%API%)) based on [%JGIT%][jgit]   *released %BUILDDATE%* +**1.2.0** *released 2012-12-31* #### fixes @@ -107,8 +115,6 @@ If *realm.ldap.maintainTeams==true* **AND** *realm.ldap.admins* is not empty, th - added XZ for Java 1.0
-### Older Releases -

Update Note

If you are updating from an earlier release AND you have indexed branches with the Lucene indexing feature, you need to be aware that this release will completely re-index your repositories. Please be sure to provide ample heap resources as appropriate for your installation. 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;