diff --git a/form/field_choice.go b/form/field_choice.go index e8f735e..6a4014d 100644 --- a/form/field_choice.go +++ b/form/field_choice.go @@ -38,6 +38,10 @@ type Choices struct { } func (c *Choices) Match(f *Field, value string) bool { + if f.Data == nil { + return false + } + if f.IsSlice { v := reflect.ValueOf(f.Data)