Skip to content

Commit 17385be

Browse files
committed
Add check for nil string response to CurrentURL()
1 parent e9100b7 commit 17385be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

remote.go

+4
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,10 @@ func (wd *remoteWD) CurrentURL() (string, error) {
622622
return "", err
623623
}
624624

625+
if reply.Value == nil {
626+
return "", fmt.Errorf("nil return value")
627+
}
628+
625629
return *reply.Value, nil
626630
}
627631

0 commit comments

Comments
 (0)