mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
Don't emit an EMAIL element if EPerson has a null email
This commit is contained in:
@@ -444,9 +444,12 @@ public class RoleDisseminator implements PackageDisseminator
|
||||
writer.writeStartElement(EPERSON);
|
||||
writer.writeAttribute(ID, String.valueOf(eperson.getID()));
|
||||
|
||||
if (eperson.getEmail()!=null)
|
||||
{
|
||||
writer.writeStartElement(EMAIL);
|
||||
writer.writeCharacters(eperson.getEmail());
|
||||
writer.writeEndElement();
|
||||
}
|
||||
|
||||
if(eperson.getNetid()!=null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user