diff --git a/Api/src/main/java/allchive/server/api/common/util/UrlUtil.java b/Api/src/main/java/allchive/server/api/common/util/UrlUtil.java index 2ffe0bbb..5ad6489f 100644 --- a/Api/src/main/java/allchive/server/api/common/util/UrlUtil.java +++ b/Api/src/main/java/allchive/server/api/common/util/UrlUtil.java @@ -29,6 +29,9 @@ public static String toAssetUrl(String key) { } public static String convertUrlToKey(String url) { + if (url == null) { + return ""; + } if (url.equals("")) { return ""; }