mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-28 03:03:50 -04:00
Add null checks
This commit is contained in:
parent
fe0dcb510c
commit
2521023025
1 changed files with 4 additions and 2 deletions
|
@ -285,8 +285,10 @@ public class WalletService {
|
|||
}
|
||||
|
||||
public void shutDown() {
|
||||
wallet.removeEventListener(walletEventListener);
|
||||
walletAppKit.stopAsync();
|
||||
if (wallet != null)
|
||||
wallet.removeEventListener(walletEventListener);
|
||||
if (walletAppKit != null)
|
||||
walletAppKit.stopAsync();
|
||||
}
|
||||
|
||||
public Wallet getWallet() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue