diff --git a/evaluationStage.go b/evaluationStage.go index 27add4a..965040a 100644 --- a/evaluationStage.go +++ b/evaluationStage.go @@ -355,7 +355,7 @@ func makeAccessorStage(pair []string) evaluationOperator { field = coreValue.MapIndex(reflect.ValueOf(pair[i])) if field != (reflect.Value{}) { inter := field.Interface() - if reflect.TypeOf(inter).Kind() == reflect.Func { + if inter != nil && reflect.TypeOf(inter).Kind() == reflect.Func { method = reflect.ValueOf(inter) } else { value = inter