diff options
author | James Moger <james.moger@gitblit.com> | 2012-05-05 15:37:28 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-05-05 15:37:28 -0400 |
commit | b6db0de02630a131005cc73e126db42a37330710 (patch) | |
tree | baf908e7d783fb5c3e66a9843e9609c55e8b8289 /src | |
parent | e0ae994e31c3a93a13c7b0141fe37dd1aac9b228 (diff) | |
download | gitblit-b6db0de02630a131005cc73e126db42a37330710.tar.gz gitblit-b6db0de02630a131005cc73e126db42a37330710.zip |
Reordered settings model loading to avoid WAR null pointer
Diffstat (limited to 'src')
-rw-r--r-- | src/com/gitblit/GitBlit.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/gitblit/GitBlit.java b/src/com/gitblit/GitBlit.java index 565b024a..b4f6d6a1 100644 --- a/src/com/gitblit/GitBlit.java +++ b/src/com/gitblit/GitBlit.java @@ -1915,7 +1915,6 @@ public class GitBlit implements ServletContextListener { @Override
public void contextInitialized(ServletContextEvent contextEvent) {
servletContext = contextEvent.getServletContext();
- settingsModel = loadSettingModels();
if (settings == null) {
// Gitblit WAR is running in a servlet container
ServletContext context = contextEvent.getServletContext();
@@ -1954,7 +1953,8 @@ public class GitBlit implements ServletContextListener { }
}
}
-
+
+ settingsModel = loadSettingModels();
serverStatus.servletContainer = servletContext.getServerInfo();
}
|