init account's ecKey and address, avoid reported NPE
This commit is contained in:
parent
12991a227a
commit
858046ec2f
|
@ -80,6 +80,7 @@ public class Wallet {
|
|||
|
||||
public void addNewAccount() {
|
||||
Account account = new Account();
|
||||
account.init();
|
||||
String address = Hex.toHexString(account.getEcKey().getAddress());
|
||||
rows.put(address, account);
|
||||
for (WalletListener listener : listeners)
|
||||
|
|
Loading…
Reference in New Issue