diff --git a/src/main/java/cms/gov/madie/measure/utils/TestCaseServiceUtil.java b/src/main/java/cms/gov/madie/measure/utils/TestCaseServiceUtil.java index 14b07087f..c023994f9 100644 --- a/src/main/java/cms/gov/madie/measure/utils/TestCaseServiceUtil.java +++ b/src/main/java/cms/gov/madie/measure/utils/TestCaseServiceUtil.java @@ -316,13 +316,15 @@ && isEmpty(group.getStratificationValues())) // Mismatch between target and import Stratification, don't set any expected values boolean measureHasStrats = - measureGroups.stream().allMatch(group -> isNotEmpty(group.getStratifications())); + measureGroups != null + ? measureGroups.stream().allMatch(group -> isNotEmpty(group.getStratifications())) + : false; if ((measureHasStrats && isEmpty(stratification)) || (!measureHasStrats && isNotEmpty(stratification))) { return null; } - if (measureGroups.size() > 1 && isNotEmpty(stratification)) { + if (measureGroups != null && measureGroups.size() > 1 && isNotEmpty(stratification)) { Deque stratificationQueue = new ArrayDeque<>(stratification); try { do {