From 4bcaea2e40ab1ee192888f7d29c334a2a3cd3699 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 17 Aug 2012 15:49:44 -0400 Subject: [PATCH] Fix performance logging null pointer on anonymous repository browsing --- 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 97fb5a9..0940c76 100644 --- a/src/com/gitblit/GitBlit.java +++ b/src/com/gitblit/GitBlit.java @@ -931,7 +931,7 @@ } 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; } -- Gitblit v1.9.1