diff --git a/remote.go b/remote.go index 653b5f4..e7ffc6b 100644 --- a/remote.go +++ b/remote.go @@ -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 }