From cb285cbfddfc0b633d6b8cdb4dc0d2bd2b8b51ef Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 05 Jan 2012 17:34:05 -0500
Subject: [PATCH] Fixed bug in receive hook for repositories in subfolders

---
 src/com/gitblit/wicket/pages/GravatarProfilePage.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/com/gitblit/wicket/pages/GravatarProfilePage.java b/src/com/gitblit/wicket/pages/GravatarProfilePage.java
index 1d702a7..0fa9009 100644
--- a/src/com/gitblit/wicket/pages/GravatarProfilePage.java
+++ b/src/com/gitblit/wicket/pages/GravatarProfilePage.java
@@ -51,7 +51,10 @@
 		} catch (IOException e) {
 			error(MessageFormat.format("Failed to find Gravatar profile for {0}", object), e, true);
 		}
-
+		
+		if (profile == null) {
+			error(MessageFormat.format("Failed to find Gravatar profile for {0}", object), true);
+		}
 		add(new Label("displayName", profile.displayName));
 		add(new Label("username", profile.preferredUsername));
 		add(new Label("location", profile.currentLocation));

--
Gitblit v1.9.1