mirror of
https://github.com/UnnoTed/wireguird
synced 2024-11-24 10:35:29 +00:00
fix: invalid mem addr or nil pointer deref
This commit is contained in:
parent
b0a00140da
commit
d653d88ab0
@ -413,6 +413,10 @@ func (t *Tunnels) Create() error {
|
|||||||
btnDelTunnel.Connect("clicked", func() {
|
btnDelTunnel.Connect("clicked", func() {
|
||||||
err := func() error {
|
err := func() error {
|
||||||
row := tl.GetSelectedRow()
|
row := tl.GetSelectedRow()
|
||||||
|
if row == nil {
|
||||||
|
return fmt.Errorf("No row not selected.")
|
||||||
|
}
|
||||||
|
|
||||||
name, err := row.GetName()
|
name, err := row.GetName()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user