Skip to content

Commit

Permalink
Merge pull request #621 from catenax-ng/fix/533-fix-nullpointer-in-in…
Browse files Browse the repository at this point in the history
…tegration-tests

Fix/533 fix nullpointer in integration tests
  • Loading branch information
ds-jhartmann authored May 13, 2024
2 parents 5b1b492 + e5d47f3 commit e0af9d4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ public static HashMap<String, HashSet<String>> getExpectedBpnToPolicyIdsMapping(

public static Stream<String> extractPolicyIdsForBpn(
final Map<String, ArrayList<LinkedHashMap<String, ?>>> bpnToPoliciesMap, final String bpn) {
return extractPolicyIds(bpnToPoliciesMap.get(bpn).stream());
List<LinkedHashMap<String, ?>> policyIds = bpnToPoliciesMap.get(bpn);
if (policyIds == null) {
policyIds = new ArrayList<>();
}
return extractPolicyIds(policyIds.stream());
}

@SuppressWarnings("rawtypes")
Expand Down

0 comments on commit e0af9d4

Please sign in to comment.