fix npe appending slashes

This commit is contained in:
Grahame Grieve 2022-12-05 17:27:43 +11:00
parent 2891aae9b1
commit 5d29a88552
1 changed files with 3 additions and 0 deletions

View File

@ -477,6 +477,9 @@ public class Utilities {
}
public static String appendForwardSlash(String definitions) {
if (definitions == null) {
return "/";
}
return definitions.endsWith("/") ? definitions : definitions + "/";
}