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