From 5d29a88552deb0009008defe7381db6bc28b477c Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 5 Dec 2022 17:27:43 +1100 Subject: [PATCH] fix npe appending slashes --- .../src/main/java/org/hl7/fhir/utilities/Utilities.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java index 4e2485c1b..f27c4ff54 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java @@ -477,6 +477,9 @@ public class Utilities { } public static String appendForwardSlash(String definitions) { + if (definitions == null) { + return "/"; + } return definitions.endsWith("/") ? definitions : definitions + "/"; }