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()) {
|
if (numAccounts != wallet.getNumAccounts()) {
|
||||||
numAccounts = wallet.getNumAccounts();
|
numAccounts = wallet.getNumAccounts();
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(() -> {
|
||||||
public void run() {
|
if (getWallet() != null)
|
||||||
updateAccountsList();
|
updateAccountsList();
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue