From e0dd0d78ec5eb390afe21332f727b4ca637afbeb Mon Sep 17 00:00:00 2001 From: Vadim Peretokin Date: Sun, 2 Jun 2019 13:58:53 +0200 Subject: [PATCH] Fix snapshot generation crash when a mapping doesn't have a uri --- .../main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java index 0c0fa040e..4ca7846f3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java @@ -370,7 +370,7 @@ public class ProfileUtilities extends TranslatingUtilities { for (StructureDefinitionMappingComponent baseMap : base.getMapping()) { boolean found = false; for (StructureDefinitionMappingComponent derivedMap : derived.getMapping()) { - if (derivedMap.getUri().equals(baseMap.getUri())) { + if (derivedMap.getUri() != null && derivedMap.getUri().equals(baseMap.getUri())) { found = true; break; }