mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-21 18:30:39 +02:00
Avoiding crashes when zap description is blank
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user