mirror of
https://github.com/labstack/echo.git
synced 2025-12-01 22:51:17 +02:00
2
bind.go
2
bind.go
@@ -88,7 +88,7 @@ func (b *DefaultBinder) Bind(i interface{}, c Context) (err error) {
|
||||
}
|
||||
|
||||
func (b *DefaultBinder) bindData(ptr interface{}, data map[string][]string, tag string) error {
|
||||
if len(data) == 0 {
|
||||
if ptr == nil || len(data) == 0 {
|
||||
return nil
|
||||
}
|
||||
typ := reflect.TypeOf(ptr).Elem()
|
||||
|
||||
Reference in New Issue
Block a user