From a21796d2d00cc25e9f07f6e951ea6fc68026a192 Mon Sep 17 00:00:00 2001 From: dtvv Date: Thu, 25 Oct 2018 02:04:02 -0500 Subject: [PATCH] -The GrapheneAccount class is crasing, now it is fixed --- .../crystalwallet/models/GrapheneAccount.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/cy/agorise/crystalwallet/models/GrapheneAccount.java b/app/src/main/java/cy/agorise/crystalwallet/models/GrapheneAccount.java index dfb4cb0..fd3e2c7 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/models/GrapheneAccount.java +++ b/app/src/main/java/cy/agorise/crystalwallet/models/GrapheneAccount.java @@ -31,9 +31,16 @@ public class GrapheneAccount extends CryptoNetAccount { } public void loadInfo(GrapheneAccountInfo info){ - this.name = info.getName(); - this.accountId = info.getAccountId(); - this.upgradedToLtm = info.getUpgradedToLtm(); + if(info != null){ + this.name = info.getName(); + this.accountId = info.getAccountId(); + this.upgradedToLtm = info.getUpgradedToLtm(); + } + else{ + this.name = ""; + this.accountId = "-1"; + this.upgradedToLtm = false; + } } public String getName() {