Skip to content

Commit

Permalink
fix null pointer on wait for up instances task
Browse files Browse the repository at this point in the history
(cherry picked from commit be9b5bac4b710eba68da26f9a263b55dec23a267)
  • Loading branch information
Bijnagte authored and ajordens committed Apr 28, 2021
1 parent f445e36 commit dba6c18
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class WaitForUpInstancesTask extends AbstractInstancesCheckTask {
return allInstancesMatch(stage, serverGroup, instances, interestingHealthProviderNames, null)
}

public static boolean allInstancesMatch(StageExecution stage,
public static boolean allInstancesMatch(StageExecution stage,
Map<String, Object> serverGroup,
List<Map<String, Object>> instances,
Collection<String> interestingHealthProviderNames,
Expand Down Expand Up @@ -382,6 +382,7 @@ class WaitForUpInstancesTask extends AbstractInstancesCheckTask {
.map({ deployment ->
deployment.get("capacity") as Map<String, Integer>
})
.filter({ it != null })
.findFirst()
})
.orElse(null)
Expand Down

0 comments on commit dba6c18

Please sign in to comment.