Fix panics when sshinfo is not set on bookmarks

This commit is contained in:
Dan Sosedoff 2017-10-03 23:00:18 -05:00
parent f73f812cf1
commit 58ae69de0b

View File

@ -25,7 +25,7 @@ type Bookmark struct {
}
func (b Bookmark) SSHInfoIsEmpty() bool {
return b.Ssh.User == "" && b.Ssh.Host == "" && b.Ssh.Port == ""
return b.Ssh == nil || b.Ssh.User == "" && b.Ssh.Host == "" && b.Ssh.Port == ""
}
func (b Bookmark) ConvertToOptions() command.Options {