From 380bd581b1a56683a77b9eb017a72129f65251f8 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Tue, 22 Mar 2022 10:03:36 +0100 Subject: [PATCH] Fix: call of reflect.Value.Interface on zero Value (#1067) panic: reflect: call of reflect.Value.Interface on zero Value Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- pkg/exprparser/interpreter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/exprparser/interpreter.go b/pkg/exprparser/interpreter.go index d313862..81eec07 100644 --- a/pkg/exprparser/interpreter.go +++ b/pkg/exprparser/interpreter.go @@ -195,7 +195,7 @@ func (impl *interperterImpl) evaluateArrayDeref(arrayDerefNode *actionlint.Array return nil, err } - return reflect.ValueOf(left).Interface(), nil + return impl.getSafeValue(reflect.ValueOf(left)), nil } func (impl *interperterImpl) getPropertyValue(left reflect.Value, property string) (value interface{}, err error) {