fix npe force closing wallet on startup

This commit is contained in:
woodser 2024-07-23 08:03:36 -04:00 committed by GitHub
parent d8161cd6e2
commit bdcf8a2182
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1758,9 +1758,11 @@ public class XmrWalletService {
private void forceCloseMainWallet() { private void forceCloseMainWallet() {
stopPolling(); stopPolling();
isClosingWallet = true; if (wallet != null) {
forceCloseWallet(wallet, getWalletPath(MONERO_WALLET_NAME)); isClosingWallet = true;
wallet = null; forceCloseWallet(wallet, getWalletPath(MONERO_WALLET_NAME));
wallet = null;
}
} }
private void forceRestartMainWallet() { private void forceRestartMainWallet() {