Skip to content

Commit

Permalink
Merge pull request #194 from anotherchrisberry/no-projects
Browse files Browse the repository at this point in the history
guard against no projects present
  • Loading branch information
tomaslin committed Apr 27, 2016
2 parents acb3e58 + a0fe357 commit 23970b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ProjectService {

List<Map> getAll() {
HystrixFactory.newListCommand(GROUP, "getAll") {
return front50Service.getAllProjects().embedded.projects ?: []
return front50Service.getAllProjects().embedded?.projects ?: []
} execute()
}

Expand Down

0 comments on commit 23970b8

Please sign in to comment.