init account's ecKey and address, avoid reported NPE

This commit is contained in:
gubatron 2015-01-19 20:11:23 -05:00
parent 12991a227a
commit 858046ec2f
1 changed files with 1 additions and 0 deletions

View File

@ -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)