Skip to content

Commit

Permalink
BUG/MINOR: avoid nil pointer dereference in PrepareMap
Browse files Browse the repository at this point in the history
  • Loading branch information
hdurand0710 committed Apr 9, 2024
1 parent 97accf7 commit 1ae9385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/maps.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (s *SingleRuntime) PrepareMap(name string) (version string, err error) {
}
parts := strings.Split(response, ":")
if len(parts) < 3 {
return "", fmt.Errorf("%s %w", err.Error(), native_errors.ErrGeneral)
return "", fmt.Errorf("%s %w", "parsing error", native_errors.ErrGeneral)
}
version = strings.TrimSpace(parts[2])
if _, err = strconv.ParseInt(version, 10, 64); err == nil {
Expand Down

0 comments on commit 1ae9385

Please sign in to comment.