diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/comparison/ComparisonSession.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/comparison/ComparisonSession.java index 3c05b67dc..94745f47b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/comparison/ComparisonSession.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/comparison/ComparisonSession.java @@ -180,6 +180,9 @@ public class ComparisonSession { } private VersionComparisonAnnotation getAnnotation(Base b) { + if (b == null) { + return null; + } if (b.hasUserData(VersionComparisonAnnotation.USER_DATA_NAME)) { return (VersionComparisonAnnotation) b.getUserData(VersionComparisonAnnotation.USER_DATA_NAME); } else {