remove expected warning when wallet is null

This commit is contained in:
woodser 2025-04-23 12:05:39 -04:00 committed by woodser
parent de5250e89a
commit bd9c28fafa

View file

@ -1448,7 +1448,7 @@ public class XmrWalletService extends XmrWalletBase {
try {
syncWithProgress(true); // repeat sync to latest target height
} catch (Exception e) {
log.warn("Error syncing wallet with progress on startup: " + e.getMessage());
if (wallet != null) log.warn("Error syncing wallet with progress on startup: " + e.getMessage());
forceCloseMainWallet();
requestSwitchToNextBestConnection(sourceConnection);
maybeInitMainWallet(true, numSyncAttempts - 1); // re-initialize wallet and sync again