From 2ab32005786597a70a115ebdf58ea31817415ad6 Mon Sep 17 00:00:00 2001 From: LaurenD Date: Tue, 3 Sep 2024 12:45:10 -0400 Subject: [PATCH] Add null check to pass test --- src/main/java/org/mitre/synthea/export/flexporter/Actions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mitre/synthea/export/flexporter/Actions.java b/src/main/java/org/mitre/synthea/export/flexporter/Actions.java index 4a62689d15..7cdba247c9 100644 --- a/src/main/java/org/mitre/synthea/export/flexporter/Actions.java +++ b/src/main/java/org/mitre/synthea/export/flexporter/Actions.java @@ -760,7 +760,7 @@ public static Bundle executeScript(List> scripts, Bundle bun Bundle newBundle = parser.parseResource(Bundle.class, outBundleJson); for (BundleEntryComponent bec : newBundle.getEntry()) { Resource r = bec.getResource(); - if (r.getId().startsWith("urn:uuid:")) { + if (r.getId() != null && r.getId().startsWith("urn:uuid:")) { // HAPI does some weird stuff with IDs // by default in Synthea they are just plain UUIDs // and the entry.fullUrl is urn:uuid:(id)