diff --git a/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/DecryptedLocalAttachment.kt b/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/DecryptedLocalAttachment.kt index 3bd7d288a..ab6f53979 100644 --- a/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/DecryptedLocalAttachment.kt +++ b/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/DecryptedLocalAttachment.kt @@ -16,7 +16,7 @@ class DecryptedLocalAttachment( fun fromJsonObject(obj: JsonObject) = DecryptedLocalAttachment( obj.get("fileUri").asString, obj.get("mimeType").asString, - obj.get("filename").asString, + obj.get("filename")?.asString ?: "", ) fun fromJson(json: String): DecryptedLocalAttachment {