diff --git a/orcid-core/src/main/java/org/orcid/pojo/DigestEmail.java b/orcid-core/src/main/java/org/orcid/pojo/DigestEmail.java index 4d16a9caf40..ba2a526fb89 100644 --- a/orcid-core/src/main/java/org/orcid/pojo/DigestEmail.java +++ b/orcid-core/src/main/java/org/orcid/pojo/DigestEmail.java @@ -27,7 +27,7 @@ public void addNotification(Notification notification) { sourceId = source.retrieveSourcePath(); } - if (source != null && source.getSourceName().getContent() != null && + if (source != null && source.getSourceName() != null && source.getSourceName().getContent() != null && !sources.contains(source.getSourceName().getContent())) { sources.add(source.getSourceName().getContent()); }