Skip to content

Commit

Permalink
Add check for nil string response to CurrentURL()
Browse files Browse the repository at this point in the history
  • Loading branch information
mhabb committed May 6, 2022
1 parent e9100b7 commit f5bc174
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,10 @@ func (wd *remoteWD) CurrentURL() (string, error) {
return "", err
}

if reply.Value == nil {
return "", fmt.Errorf("nil return value")
}

return *reply.Value, nil
}

Expand Down

0 comments on commit f5bc174

Please sign in to comment.