Merge pull request #204 from gubatron/npe-fix-issue-195

init account's ecKey and address, avoid reported NPE
This commit is contained in:
Roman Mandeleil 2015-01-21 11:46:18 +02:00
commit 5e2c988c85
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)