diff --git a/feature_reflect_native.go b/feature_reflect_native.go index 920c568..55e4d71 100644 --- a/feature_reflect_native.go +++ b/feature_reflect_native.go @@ -391,6 +391,9 @@ func (codec *nonEmptyInterfaceCodec) Decode(ptr unsafe.Pointer, iter *Iterator) e.typ = nonEmptyInterface.itab.typ e.word = nonEmptyInterface.word iter.ReadVal(&i) + if e.word == nil { + nonEmptyInterface.itab = nil + } nonEmptyInterface.word = e.word }