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";