diff options
author | James Moger <james.moger@gitblit.com> | 2012-08-17 15:49:44 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-08-17 15:49:44 -0400 |
commit | 4bcaea2e40ab1ee192888f7d29c334a2a3cd3699 (patch) | |
tree | 3d8ea1327d7bc28100e5fd165002c2b268479f81 | |
parent | 2a81783f291805594d4b97da6830aee94292f8c8 (diff) | |
download | gitblit-4bcaea2e40ab1ee192888f7d29c334a2a3cd3699.tar.gz gitblit-4bcaea2e40ab1ee192888f7d29c334a2a3cd3699.zip |
Fix performance logging null pointer on anonymous repository browsing
-rw-r--r-- | src/com/gitblit/GitBlit.java | 2 |
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;
}
|