From 76e62088df81cfe0d34fae46c012ea9b2440c793 Mon Sep 17 00:00:00 2001 From: Tao Wen Date: Wed, 28 Jun 2017 23:39:46 +0800 Subject: [PATCH] #78 not null pointer is considered not empty --- feature_reflect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature_reflect.go b/feature_reflect.go index 3c41705..bb82072 100644 --- a/feature_reflect.go +++ b/feature_reflect.go @@ -107,7 +107,7 @@ func (encoder *optionalEncoder) IsEmpty(ptr unsafe.Pointer) bool { if *((*unsafe.Pointer)(ptr)) == nil { return true } else { - return encoder.valueEncoder.IsEmpty(*((*unsafe.Pointer)(ptr))) + return false } }