fix potential NPE in updateAccountsList()

This commit is contained in:
m2049r 2020-10-20 23:47:41 +02:00
parent 067a23e6a5
commit 45c5883e11
No known key found for this signature in database
GPG Key ID: 4386E69AF260078D
1 changed files with 2 additions and 3 deletions

View File

@ -579,10 +579,9 @@ public class WalletActivity extends BaseActivity implements WalletFragment.Liste
}); });
if (numAccounts != wallet.getNumAccounts()) { if (numAccounts != wallet.getNumAccounts()) {
numAccounts = wallet.getNumAccounts(); numAccounts = wallet.getNumAccounts();
runOnUiThread(new Runnable() { runOnUiThread(() -> {
public void run() { if (getWallet() != null)
updateAccountsList(); updateAccountsList();
}
}); });
} }
try { try {