Skip to content

Commit 8495758

Browse files
author
sat01a
committed
Fixed NPE exception.
1 parent b7293c7 commit 8495758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-app/controllers/au/org/ala/biocollect/merit/ProjectController.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ProjectController {
7575
// Project site is missing, update site and sync project site info
7676
project.projectSite = siteService.get(project.projectSiteId, [view:'brief'])
7777
List projectIds = project.projectSite?.projects
78-
projectIds = projectIds?.findAll{it != '' && it != null}
78+
projectIds = projectIds?.findAll{it != '' && it != null} ?: []
7979
projectIds << project.projectId
8080
siteService.update(project.projectSiteId, [projects: projectIds])
8181
}

0 commit comments

Comments
 (0)