From 9e1f843e7c1769890ab0ad45ad40bc5191abc3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AA=85=EC=84=9D?= Date: Wed, 8 Feb 2023 14:36:10 +0900 Subject: [PATCH] =?UTF-8?q?Issues=20#287=20chore:=20Uri=EA=B3=BC=20String?= =?UTF-8?q?=20=EC=9D=B4=20=EA=B0=81=EA=B0=81=20null=20=EC=9D=B8=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=EB=8C=80=EC=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lighthouse/common/mapper/UriMapper.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commons/common-android/src/main/java/com/lighthouse/common/mapper/UriMapper.kt b/commons/common-android/src/main/java/com/lighthouse/common/mapper/UriMapper.kt index b0dd448f1..5f5354ff0 100644 --- a/commons/common-android/src/main/java/com/lighthouse/common/mapper/UriMapper.kt +++ b/commons/common-android/src/main/java/com/lighthouse/common/mapper/UriMapper.kt @@ -6,8 +6,8 @@ fun Uri?.toDomain(): String { return this?.toString() ?: "" } -fun String.toUri(): Uri? { - return if (isNotEmpty()) { +fun String?.toUri(): Uri? { + return if (!isNullOrEmpty()) { try { Uri.parse(this) } catch (e: Exception) {