Skip to content

Commit

Permalink
Merge pull request #321 from cbron/fuzzing
Browse files Browse the repository at this point in the history
Dont allow entry to nil map
  • Loading branch information
ibuildthecloud committed Nov 14, 2019
2 parents ebecbda + 64d41bd commit 966e8db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/types/mapper/set_value.go
Expand Up @@ -12,13 +12,13 @@ type SetValue struct {
}

func (d SetValue) FromInternal(data data.Object) {
if d.ExternalValue != nil {
if data != nil && d.ExternalValue != nil {
data[d.Field] = d.ExternalValue
}
}

func (d SetValue) ToInternal(data data.Object) error {
if d.InternalValue != nil {
if data != nil && d.InternalValue != nil {
data[d.Field] = d.InternalValue
}
return nil
Expand Down

0 comments on commit 966e8db

Please sign in to comment.