From 17385be4986ef1edb9c563fac9f7e7b10d09c0eb Mon Sep 17 00:00:00 2001 From: Martin Habbecke Date: Fri, 6 May 2022 11:23:51 -0700 Subject: [PATCH] Add check for nil string response to CurrentURL() --- remote.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }