From 333165e0a6d3a33d9efff0abe51484e20787cea9 Mon Sep 17 00:00:00 2001 From: Prateek Keerthi Date: Fri, 6 Dec 2024 13:00:26 -0500 Subject: [PATCH] MAT-7908 fixed test case importing bug for QDM --- .../cms/gov/madie/measure/utils/TestCaseServiceUtil.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {