diff --git a/checker/default/string/main.go b/checker/default/string/main.go index ad28da1..89e8086 100644 --- a/checker/default/string/main.go +++ b/checker/default/string/main.go @@ -10,6 +10,10 @@ func Match(name string) bool { func Check(value interface{}) bool { + if value == nil { + return false + } + kind := reflect.TypeOf(value).Kind() return kind == reflect.String