Closed chrisk314 closed 3 years ago
This change fixes a segfault which occurs in the validation example code. When the validated struct contains no errors cv.validator.Struct(i) returns nil. Calling Error() on this nil return value was causing the segfault.
cv.validator.Struct(i)
Error()
Closing this as duplicate of #182
This change fixes a segfault which occurs in the validation example code. When the validated struct contains no errors
cv.validator.Struct(i)
returns nil. CallingError()
on this nil return value was causing the segfault.