From e6fa1068aa19ad73cf2445c5c6d98b8be44f8dab Mon Sep 17 00:00:00 2001 From: Sanghoon Jeong <67852689+wjdtkdgns@users.noreply.github.com> Date: Mon, 11 Sep 2023 22:53:27 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20urlToKey=20null=20=EC=B2=98=EB=A6=AC=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=B6=94=EA=B0=80=20(#166)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Api/src/main/java/allchive/server/api/common/util/UrlUtil.java | 3 +++ 1 file changed, 3 insertions(+) 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 ""; }