diff --git a/uimaj-core/src/test/java/org/apache/uima/cas/serdes/CasToComparableText.java b/uimaj-core/src/test/java/org/apache/uima/cas/serdes/CasToComparableText.java index 3a79a98d42..6d8a0475f7 100644 --- a/uimaj-core/src/test/java/org/apache/uima/cas/serdes/CasToComparableText.java +++ b/uimaj-core/src/test/java/org/apache/uima/cas/serdes/CasToComparableText.java @@ -717,7 +717,7 @@ private Set findReachableFeatureStructures( values.stream().filter(v -> v instanceof FeatureStructure).filter(v -> !seen.contains(v)) .forEach(v -> toProcess.add((FeatureStructure) v)); } - + } else { for (Feature feature : fs.getType().getFeatures()) { if (feature.getRange().isPrimitive()) { continue; @@ -736,7 +736,7 @@ private Set findReachableFeatureStructures( List featureValues = multiValuedFeatureStructureToList( fs.getFeatureValue(feature)); - if (values != null) { + if (featureValues != null) { for (Object value : featureValues) { if (value instanceof FeatureStructure && !seen.contains(value)) { toProcess.add((FeatureStructure) value);