fix for NPE

This commit is contained in:
Grahame Grieve 2023-03-14 21:28:37 +11:00
parent 824f51f82e
commit 6be0becc61
1 changed files with 5 additions and 3 deletions

View File

@ -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<String> list) {
if (s == null) {
return false;