mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-18 22:41:42 +02:00
Fixes NPE on the invoice parser
This commit is contained in:
@@ -172,7 +172,7 @@ class LightningAddressResolver {
|
||||
val messageNode = tree.get("message")
|
||||
val statusNode = tree.get("status")
|
||||
|
||||
if (tree.get("error").isBoolean && messageNode != null) {
|
||||
if (tree.get("error") != null && tree.get("error").isBoolean && messageNode != null) {
|
||||
if (errorNode.asBoolean()) {
|
||||
return messageNode.asText()
|
||||
}
|
||||
|
Reference in New Issue
Block a user