diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/CredentialSubjectProbe.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/CredentialSubjectProbe.java index 37c917b..a97f00b 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/CredentialSubjectProbe.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/CredentialSubjectProbe.java @@ -95,7 +95,7 @@ public class CredentialSubjectProbe extends Probe { } // criteria must have id or narrative JsonNode criteria = achievement.get("criteria"); - if (!criteria.has("id") && !criteria.has("narrative")) { + if (!criteria.hasNonNull("id") && !criteria.hasNonNull("narrative")) { return error("criteria in achievement of credentialSubject must have id or narrative", ctx); } } else if (achivementRequired) {