-The GrapheneAccount class is crasing, now it is fixed

This commit is contained in:
dtvv 2018-10-25 02:04:02 -05:00
parent b05cf62daf
commit a21796d2d0

View file

@ -31,9 +31,16 @@ public class GrapheneAccount extends CryptoNetAccount {
} }
public void loadInfo(GrapheneAccountInfo info){ public void loadInfo(GrapheneAccountInfo info){
this.name = info.getName(); if(info != null){
this.accountId = info.getAccountId(); this.name = info.getName();
this.upgradedToLtm = info.getUpgradedToLtm(); this.accountId = info.getAccountId();
this.upgradedToLtm = info.getUpgradedToLtm();
}
else{
this.name = "";
this.accountId = "-1";
this.upgradedToLtm = false;
}
} }
public String getName() { public String getName() {