Skip to content
Snippets Groups Projects
Commit f663e18e authored by felmer's avatar felmer
Browse files

LMS-1937 bug fixed

SVN: 19199
parent ed1b2103
No related branches found
No related tags found
No related merge requests found
......@@ -89,10 +89,13 @@ public final class PersonRenderer
/**
* Creates an <i>HTML</i> A element for given <var>person</var> with a specified name.
*/
public final static String createPersonAnchor(final Person person, String personName)
public final static String createPersonAnchor(final Person personOrNull, String personName)
{
assert person != null : "Unspecified person.";
final String email = person.getEmail();
if (personOrNull == null)
{
return personName;
}
final String email = personOrNull.getEmail();
if (StringUtils.isBlank(email) == false)
{
final Element anchor = DOMUtils.createAnchorElement(null, "mailto:" + email, email);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment