Skip to content

Commit

Permalink
Merge pull request #484 from mozzy11/2.8
Browse files Browse the repository at this point in the history
fix NPE
  • Loading branch information
mozzy11 authored Jul 26, 2023
2 parents f24f6de + 5840ffa commit 1769ad3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ public int compare(TestReflexBean o1, TestReflexBean o2) {
if (rule.getOverall().equals(ReflexRuleOptions.OverallOptions.ALL)) {
Set<Integer> testAnalyteIds = new HashSet<>();
rule.getConditions().forEach(c -> testAnalyteIds.add(c.getTestAnalyteId()));
if (testAnalyteIds.size() > analyteTestMap.get(analyteId).size()) {
if (analyteTestMap.get(analyteId) != null) {
if (testAnalyteIds.size() > analyteTestMap.get(analyteId).size()) {
newReflexAnalyses = new ArrayList<>();
}
}else {
newReflexAnalyses = new ArrayList<>();
}
}
Expand Down

0 comments on commit 1769ad3

Please sign in to comment.