fix npe on startup by caching non-pool txs if necessary (#1957)

This commit is contained in:
woodser 2025-09-15 00:58:58 -04:00 committed by GitHub
parent 9aca42578f
commit deb92b71b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2157,6 +2157,7 @@ public class XmrWalletService extends XmrWalletBase {
BigInteger unlockedBalance = wallet.getUnlockedBalance();
cachedSubaddresses = wallet.getSubaddresses(0);
cachedOutputs = wallet.getOutputs();
if (cachedTxs == null) cachedTxs = wallet.getTxs(new MoneroTxQuery().setIncludeOutputs(true).setInTxPool(false));
// cache and notify changes
if (cachedHeight == null) {