From 898dc7e44f746742ec4d428d7c51fa724bf79270 Mon Sep 17 00:00:00 2001 From: Billy Trend Date: Wed, 7 Feb 2024 15:18:53 -0600 Subject: [PATCH] Patch --- core/query.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/query.go b/core/query.go index 3e46236..479cbb2 100644 --- a/core/query.go +++ b/core/query.go @@ -171,8 +171,10 @@ func isEmptyValue(v reflect.Value) bool { IsZero() bool } - if z, ok := v.Interface().(zeroable); ok { - return z.IsZero() + if !v.IsNil() { + if z, ok := v.Interface().(zeroable); ok { + return z.IsZero() + } } switch v.Kind() {