fix npe in Utilities.pathURL()

This commit is contained in:
Grahame Grieve 2022-01-13 17:39:02 +11:00
parent 554a458b57
commit 5b69a30919
1 changed files with 1 additions and 9 deletions

View File

@ -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 "";