From 19f60106f55e91760c09950d3f68a1d9fcd5b3b7 Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Thu, 24 Oct 2024 14:49:06 -0400 Subject: [PATCH] Look, its full of nulls Signed-off-by: Alex Snaps --- pkg/evaluators/identity_extension.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/evaluators/identity_extension.go b/pkg/evaluators/identity_extension.go index 63dc87a9..ae015a0d 100644 --- a/pkg/evaluators/identity_extension.go +++ b/pkg/evaluators/identity_extension.go @@ -24,5 +24,8 @@ func (i *IdentityExtension) ResolveFor(identityObject map[string]any, authJSON s if value, exists := identityObject[i.Name]; exists && !i.Overwrite { return value, nil } - return i.Value.ResolveFor(authJSON) + if i.Value != nil { + i.Value.ResolveFor(authJSON) + } + return "", nil }