Skip to content

Commit

Permalink
Ensure that titus server groups have non-null 'instances' collection
Browse files Browse the repository at this point in the history
Avoids an NPE in ClusterController.
  • Loading branch information
ajordens authored and tomaslin committed Mar 26, 2018
1 parent 6d71f7d commit 3cced97
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ class TitusClusterProvider implements ClusterProvider<TitusCluster> {
new TitusInstance(it as Map)
}
}
serverGroup.instances = serverGroup.instances ?: []

[(serverGroupEntry.id): serverGroup]
}
Expand Down

0 comments on commit 3cced97

Please sign in to comment.