Skip to content

Commit 54e163f

Browse files
committed
Prevent NPE if no email and not name
1 parent 5a42cb3 commit 54e163f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

grails-app/services/au/org/ala/collectory/EmlImportService.groovy

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ class EmlImportService {
187187

188188
if (!contact && (hasEmail || hasName)) {
189189
contact = new Contact()
190+
} else {
191+
return null
190192
}
191193

192194
// Update the contact details

0 commit comments

Comments
 (0)