From 5b69a30919808a31e41b6d6227eeadf736fdd0f9 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 13 Jan 2022 17:39:02 +1100 Subject: [PATCH] fix npe in Utilities.pathURL() --- .../main/java/org/hl7/fhir/utilities/Utilities.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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 30a220e02..db22d051a 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 @@ -649,7 +649,7 @@ public class Utilities { StringBuilder s = new StringBuilder(); boolean d = false; for (String arg : args) { - if (args != null) { + if (arg != null) { if (!d) d = !noString(arg); else if (s.toString() != null && !s.toString().endsWith("/") && !arg.startsWith("/")) @@ -660,14 +660,6 @@ public class Utilities { return s.toString(); } - -// public static void checkCase(String filename) { -// File f = new CSFile(filename); -// if (!f.getName().equals(filename)) -// throw new FHIRException("Filename ") -// -// } - public static String nmtokenize(String cs) { if (cs == null) return "";