Always ignore unsupported services when building the cache.

This commit is contained in:
CalDescent 2023-05-12 12:03:32 +01:00
parent 21f01226e9
commit 7725c5e21f

View File

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