James Moger
2011-12-13 d17f433bf1c709b4daab58f503a142dd5e19cc4a
Fixed null pointer possibility for gravatar profiles
1 files modified
3 ■■■■■ changed files
src/com/gitblit/wicket/pages/GravatarProfilePage.java 3 ●●●●● patch | view | raw | blame | history
src/com/gitblit/wicket/pages/GravatarProfilePage.java
@@ -52,6 +52,9 @@
            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));