]> source.dussan.org Git - gitblit.git/commitdiff
Fixed NPE on create repo with mixed case (issue-185)
authorJames Moger <james.moger@gitblit.com>
Sat, 5 Jan 2013 22:22:19 +0000 (17:22 -0500)
committerJames Moger <james.moger@gitblit.com>
Sat, 5 Jan 2013 22:22:19 +0000 (17:22 -0500)
docs/04_releases.mkd
src/com/gitblit/GitBlit.java

index d5e777ca2d484c1c1ee6856994902258b858d329..37954625971cd6359627ffa414db1d8b09016b9b 100644 (file)
@@ -6,6 +6,7 @@
 \r
 #### fixes\r
 \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
 - Build project models from the repository model cache, when possible, to reduce page load time (issue 172)\r
 - Fixed loading of Brazilian Portuguese translation from *nix server (github/inaiat)\r
index 74d32df083f86b9ecdc9138041b23a8ad29ed4c6..3eb246b82fa57a06b036316293a6eb9171f8671c 100644 (file)
@@ -1371,8 +1371,8 @@ public class GitBlit implements ServletContextListener {
                if (config.isOutdated()) {\r
                        // reload model\r
                        logger.info(MessageFormat.format("Config for \"{0}\" has changed. Reloading model and updating cache.", repositoryName));\r
-                       model = loadRepositoryModel(repositoryName);\r
-                       removeFromCachedRepositoryList(repositoryName);\r
+                       model = loadRepositoryModel(model.name);\r
+                       removeFromCachedRepositoryList(model.name);\r
                        addToCachedRepositoryList(model);\r
                } else {\r
                        // update a few repository parameters \r