diff --git a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/renderers/HistoryGenerator.java b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/renderers/HistoryGenerator.java index 1f046bb7..0bbd463e 100644 --- a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/renderers/HistoryGenerator.java +++ b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/renderers/HistoryGenerator.java @@ -163,7 +163,7 @@ public static boolean allEntriesAreHistoryProvenance(Element resource) throws Un } List entries = resource.getChildrenByName("entry"); for (Element be : entries) { - if (!"Provenance".equals(be.getNamedChild("resource").fhirType())) { + if (!be.hasChild("resource") || !"Provenance".equals(be.getNamedChild("resource").fhirType())) { return false; } }