Avoiding crashes when zap description is blank

This commit is contained in:
Vitor Pamplona
2023-04-03 11:53:02 -04:00
parent 4db0faeda4
commit 37d839504c

View File

@@ -38,7 +38,7 @@ class LnZapEvent(
} }
override fun containedPost(): Event? = try { override fun containedPost(): Event? = try {
description()?.let { description()?.ifBlank { null }?.let {
fromJson(it, Client.lenient) fromJson(it, Client.lenient)
} }
} catch (e: Exception) { } catch (e: Exception) {