Skip to content

Commit

Permalink
Add null check to pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmd59 committed Sep 3, 2024
1 parent c44de55 commit 2ab3200
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ public static Bundle executeScript(List<Map<String, String>> 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)
Expand Down

0 comments on commit 2ab3200

Please sign in to comment.