mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +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.writeStartElement(EPERSON);
|
||||||
writer.writeAttribute(ID, String.valueOf(eperson.getID()));
|
writer.writeAttribute(ID, String.valueOf(eperson.getID()));
|
||||||
|
|
||||||
writer.writeStartElement(EMAIL);
|
if (eperson.getEmail()!=null)
|
||||||
writer.writeCharacters(eperson.getEmail());
|
{
|
||||||
writer.writeEndElement();
|
writer.writeStartElement(EMAIL);
|
||||||
|
writer.writeCharacters(eperson.getEmail());
|
||||||
|
writer.writeEndElement();
|
||||||
|
}
|
||||||
|
|
||||||
if(eperson.getNetid()!=null)
|
if(eperson.getNetid()!=null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user