Skip to content

Commit

Permalink
Fix a panic cause by log.
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Jan 8, 2019
1 parent d269f7d commit 82abf1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 82abf1f

Please sign in to comment.