hashicorp / go-multierror

A Go (golang) package for representing a list of errors as a single error.
Mozilla Public License 2.0
2.28k stars 123 forks source link

fix: handle nil pointer in Len function of Error struct #95

Closed corani closed 5 months ago

corani commented 5 months ago

Similar to *Error.ErrorOrNil, handle nil values for *Error gracefully, return a length of 0.