summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-08-17 15:49:44 -0400
committerJames Moger <james.moger@gitblit.com>2012-08-17 15:49:44 -0400
commit4bcaea2e40ab1ee192888f7d29c334a2a3cd3699 (patch)
tree3d8ea1327d7bc28100e5fd165002c2b268479f81
parent2a81783f291805594d4b97da6830aee94292f8c8 (diff)
downloadgitblit-4bcaea2e40ab1ee192888f7d29c334a2a3cd3699.tar.gz
gitblit-4bcaea2e40ab1ee192888f7d29c334a2a3cd3699.zip
Fix performance logging null pointer on anonymous repository browsing
-rw-r--r--src/com/gitblit/GitBlit.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/gitblit/GitBlit.java b/src/com/gitblit/GitBlit.java
index 97fb5a95..0940c768 100644
--- a/src/com/gitblit/GitBlit.java
+++ b/src/com/gitblit/GitBlit.java
@@ -931,7 +931,7 @@ public class GitBlit implements ServletContextListener {
}
long duration = System.currentTimeMillis() - methodStart;
logger.info(MessageFormat.format("{0} repository models loaded for {1} in {2} msecs",
- repositories.size(), user.username, duration));
+ repositories.size(), user == null ? "anonymous" : user.username, duration));
return repositories;
}