Merge pull request #6575 from yonson2023/fix_exception_governance

[1.9.10] Fix unhandled exception in DAO Governance view.
This commit is contained in:
Alejandro García 2023-02-12 14:04:39 +00:00 committed by GitHub
commit 3b1a5f0337
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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