-The GrapheneAccount class is crasing, now it is fixed
This commit is contained in:
parent
b05cf62daf
commit
a21796d2d0
1 changed files with 10 additions and 3 deletions
|
@ -31,10 +31,17 @@ public class GrapheneAccount extends CryptoNetAccount {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadInfo(GrapheneAccountInfo info){
|
public void loadInfo(GrapheneAccountInfo info){
|
||||||
|
if(info != null){
|
||||||
this.name = info.getName();
|
this.name = info.getName();
|
||||||
this.accountId = info.getAccountId();
|
this.accountId = info.getAccountId();
|
||||||
this.upgradedToLtm = info.getUpgradedToLtm();
|
this.upgradedToLtm = info.getUpgradedToLtm();
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.name = "";
|
||||||
|
this.accountId = "-1";
|
||||||
|
this.upgradedToLtm = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
|
|
Loading…
Reference in a new issue