diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/VerificationDependenciesProbe.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/VerificationDependenciesProbe.java index 9014c75..31f213c 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/VerificationDependenciesProbe.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/VerificationDependenciesProbe.java @@ -5,6 +5,7 @@ import static org.oneedtech.inspect.util.code.Defensives.checkNotNull; import java.net.URI; import java.net.URISyntaxException; import java.util.List; +import java.util.Optional; import org.oneedtech.inspect.core.probe.Probe; import org.oneedtech.inspect.core.probe.RunContext; @@ -87,7 +88,10 @@ public class VerificationDependenciesProbe extends Probe List allowedOrigins = null; String issuerId = issuerNode.get("id").asText().strip(); if (allowedOriginsNode == null || allowedOriginsNode.isNull()) { - allowedOrigins = List.of(getDefaultAllowedOrigins(issuerId)); + String defaultAllowedOrigins = getDefaultAllowedOrigins(issuerId); + if (defaultAllowedOrigins != null) { + allowedOrigins = List.of(defaultAllowedOrigins); + } } else { JsonNodeUtil.asStringList(allowedOriginsNode); }