Merge pull request #204 from gubatron/npe-fix-issue-195
init account's ecKey and address, avoid reported NPE
This commit is contained in:
commit
5e2c988c85
|
@ -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