From 7725c5e21fe5fdad8175d468883cce00ca033528 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Fri, 12 May 2023 12:03:32 +0100 Subject: [PATCH] Always ignore unsupported services when building the cache. --- .../org/qortal/transaction/ArbitraryTransaction.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/qortal/transaction/ArbitraryTransaction.java b/src/main/java/org/qortal/transaction/ArbitraryTransaction.java index b2954dd9..df4a92f7 100644 --- a/src/main/java/org/qortal/transaction/ArbitraryTransaction.java +++ b/src/main/java/org/qortal/transaction/ArbitraryTransaction.java @@ -369,6 +369,11 @@ public class ArbitraryTransaction extends Transaction { String name = arbitraryTransactionData.getName(); String identifier = arbitraryTransactionData.getIdentifier(); + if (service == null) { + // Unsupported service - ignore this resource + return; + } + // In the cache we store null identifiers as "default", as it is part of the primary key if (identifier == null) { identifier = "default"; @@ -427,6 +432,11 @@ public class ArbitraryTransaction extends Transaction { String name = latestTransactionData.getName(); String identifier = latestTransactionData.getIdentifier(); + if (service == null) { + // Unsupported service - ignore this resource + return; + } + // In the cache we store null identifiers as "default", as it is part of the primary key if (identifier == null) { identifier = "default";