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 0cb5e1257..ced64e622 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 @@ -1422,13 +1422,15 @@ public class Utilities { return false; } for (String l : list) { - if (s.startsWith(l)) { - return true; + if (l != null) { + if (s.startsWith(l)) { + return true; + } } } return false; } - + public static boolean startsWithInList(String s, Collection list) { if (s == null) { return false;