mirror of https://github.com/m2049r/xmrwallet.git
fix potential NPE in updateAccountsList()
This commit is contained in:
parent
067a23e6a5
commit
45c5883e11
|
@ -579,10 +579,9 @@ public class WalletActivity extends BaseActivity implements WalletFragment.Liste
|
|||
});
|
||||
if (numAccounts != wallet.getNumAccounts()) {
|
||||
numAccounts = wallet.getNumAccounts();
|
||||
runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
runOnUiThread(() -> {
|
||||
if (getWallet() != null)
|
||||
updateAccountsList();
|
||||
}
|
||||
});
|
||||
}
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue