Guard against proj.Backend being nil
This commit is contained in:
parent
f1b5fb6e0f
commit
e0f7dc17cd
|
@ -115,8 +115,10 @@ func GetCurrentCloudURL() (string, error) {
|
|||
return "", errors.Wrap(err, "could not load current project")
|
||||
}
|
||||
|
||||
if proj.Backend != nil {
|
||||
url = proj.Backend.URL
|
||||
}
|
||||
}
|
||||
|
||||
if url == "" {
|
||||
creds, err := GetStoredCredentials()
|
||||
|
|
Loading…
Reference in a new issue