fix: invalid mem addr or nil pointer deref

This commit is contained in:
tgbv 2023-09-30 17:54:16 +03:00
parent b0a00140da
commit d653d88ab0

View File

@ -413,6 +413,10 @@ func (t *Tunnels) Create() error {
btnDelTunnel.Connect("clicked", func() {
err := func() error {
row := tl.GetSelectedRow()
if row == nil {
return fmt.Errorf("No row not selected.")
}
name, err := row.GetName()
if err != nil {
return err