diff --git a/internal/query/instance.go b/internal/query/instance.go index 626d56147..2cf781dbf 100644 --- a/internal/query/instance.go +++ b/internal/query/instance.go @@ -599,11 +599,10 @@ func scanAuthzInstance() (*authzInstance, func(row *sql.Row) error) { } instance.CSP.EnableIframeEmbedding = enableIframeEmbedding.Bool instance.Impersonation = enableImpersonation.Bool - if len(features) == 0 { - return nil - } - if err = json.Unmarshal(features, &instance.Feature); err != nil { - return zerrors.ThrowInternal(err, "QUERY-Po8ki", "Errors.Internal") + if len(features) > 0 { + if err = json.Unmarshal(features, &instance.Feature); err != nil { + return zerrors.ThrowInternal(err, "QUERY-Po8ki", "Errors.Internal") + } } if len(executionTargetsBytes) > 0 { var targets []target_domain.Target