Add null checks

This commit is contained in:
Manfred Karrer 2014-11-13 11:19:14 +01:00
parent fe0dcb510c
commit 2521023025

View File

@ -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() {