From 1e51ac390994172f8901515aa92b950996ed6a74 Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Tue, 20 Dec 2022 13:08:28 +0100 Subject: [PATCH] Fixed valueOf: check external only if value is not null --- .../main/java/org/oneedtech/inspect/vc/Assertion.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/Assertion.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/Assertion.java index 3f02a85..76e75d8 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/Assertion.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/Assertion.java @@ -115,12 +115,12 @@ public class Assertion extends Credential { return found; } } - } - // check external type - if (validateIri(typeNode)) { - return External; - } + // check external type + if (validateIri(typeNode)) { + return External; + } + } return Unknown; }