From baad09bfc88dc4405b23c23131552bf76b740b39 Mon Sep 17 00:00:00 2001 From: yonson2023 <122909161+yonson2023@users.noreply.github.com> Date: Sat, 11 Feb 2023 08:55:08 -0600 Subject: [PATCH] Fix unhandled exception when empty txId passed. --- core/src/main/java/bisq/core/btc/wallet/WalletService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/btc/wallet/WalletService.java b/core/src/main/java/bisq/core/btc/wallet/WalletService.java index 7b65e81684..a044756505 100644 --- a/core/src/main/java/bisq/core/btc/wallet/WalletService.java +++ b/core/src/main/java/bisq/core/btc/wallet/WalletService.java @@ -468,7 +468,7 @@ public abstract class WalletService { @Nullable public TransactionConfidence getConfidenceForTxId(@Nullable String txId) { - if (wallet != null && txId != null) { + if (wallet != null && txId != null && !txId.isEmpty()) { Transaction tx = getTxByIdMap().get(Sha256Hash.wrap(txId)); if (tx != null) { return tx.getConfidence();