From d653d88ab01df0e85470e49a70167b24c170ead9 Mon Sep 17 00:00:00 2001 From: tgbv <31542280+tgbv@users.noreply.github.com> Date: Sat, 30 Sep 2023 17:54:16 +0300 Subject: [PATCH] fix: invalid mem addr or nil pointer deref --- gui/tunnels.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/tunnels.go b/gui/tunnels.go index e3284de..0d51f16 100755 --- a/gui/tunnels.go +++ b/gui/tunnels.go @@ -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