fix NPE reading wallet height before initialized (#1916)

This commit is contained in:
woodser 2025-08-14 13:26:51 -04:00 committed by GitHub
parent b76a556487
commit 348bfb7f38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1465,7 +1465,7 @@ public class XmrWalletService extends XmrWalletBase {
long date = localDateTime.toEpochSecond(ZoneOffset.UTC);
user.setWalletCreationDate(date);
}
walletHeight.set(wallet.getHeight());
if (wallet != null) walletHeight.set(wallet.getHeight());
isClosingWallet = false;
}