Skip to content

Commit de5c965

Browse files
authored
Fix npe (#7026)
* Deactivated records should get 409 on GET requests * Fix annoying NPE
1 parent 5b1fba6 commit de5c965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orcid-core/src/main/java/org/orcid/pojo/DigestEmail.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void addNotification(Notification notification) {
2727
sourceId = source.retrieveSourcePath();
2828
}
2929

30-
if (source != null && source.getSourceName().getContent() != null &&
30+
if (source != null && source.getSourceName() != null && source.getSourceName().getContent() != null &&
3131
!sources.contains(source.getSourceName().getContent())) {
3232
sources.add(source.getSourceName().getContent());
3333
}

0 commit comments

Comments
 (0)