mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-16 13:46:46 +00:00
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…
x
Reference in New Issue
Block a user