diff --git a/decoder.go b/decoder.go index 094bb726..6d119963 100644 --- a/decoder.go +++ b/decoder.go @@ -819,8 +819,8 @@ func (d *Decoder) ReadActionData(action *Action) (err error) { var decodeInto reflect.Type if actionMap != nil { objType := actionMap[action.Name] - decoderLog.Debug("read object", zap.String("type", objType.Name())) if objType != nil { + decoderLog.Debug("read object", zap.String("type", objType.Name())) decodeInto = objType } }