Skip to content

Commit

Permalink
Fix annoying NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Apr 18, 2024
1 parent 585b896 commit 16697c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orcid-core/src/main/java/org/orcid/pojo/DigestEmail.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 16697c9

Please sign in to comment.