From 16697c94e14cc804197b14be824de59b5063850f Mon Sep 17 00:00:00 2001 From: amontenegro Date: Thu, 18 Apr 2024 10:24:55 -0600 Subject: [PATCH] Fix annoying NPE --- orcid-core/src/main/java/org/orcid/pojo/DigestEmail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }