\r
if (repository.isPersonalRepository()) {\r
UserModel user = GitBlit.self().getUserModel(repository.projectPath.substring(1));\r
- PersonIdent ident = new PersonIdent(user.getDisplayName(), user.emailAddress);\r
+ PersonIdent ident = new PersonIdent(user.getDisplayName(), user.emailAddress == null ? user.getDisplayName() : user.emailAddress);\r
item.add(new GravatarImage("anAvatar", ident, 20));\r
if (pageRepository.equals(repository)) {\r
// do not link to self\r
email.setRenderBodyOnly(true);\r
add(email.setVisible(GitBlit.getBoolean(Keys.web.showEmailAddresses, true) && !StringUtils.isEmpty(user.emailAddress)));\r
\r
- PersonIdent person = new PersonIdent(user.getDisplayName(), user.emailAddress);\r
+ PersonIdent person = new PersonIdent(user.getDisplayName(), user.emailAddress == null ? user.getDisplayName() : user.emailAddress);\r
add(new GravatarImage("gravatar", person, 210));\r
\r
UserModel sessionUser = GitBlitWebSession.get().getUser();\r
}
} else if (RegistrantType.USER.equals(entry.registrantType)) {
// user
- PersonIdent ident = new PersonIdent(entry.registrant, null);
+ PersonIdent ident = new PersonIdent(entry.registrant, "");
UserModel user = GitBlit.self().getUserModel(entry.registrant);
if (user != null) {
- ident = new PersonIdent(user.getDisplayName(), user.emailAddress);
+ ident = new PersonIdent(user.getDisplayName(), user.emailAddress == null ? user.getDisplayName() : user.emailAddress);
}
Fragment userFragment = new Fragment("registrant", "userRegistrant", RegistrantPermissionsPanel.this);