Skip to content

Commit 26d7d42

Browse files
author
DrewRepaskyOlive
authored
Merge pull request #22 from open-olive/SIDE-1021-loop-not-shutdown
fix for bad access: nil dereference
2 parents 92578a6 + 1527eb0 commit 26d7d42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ldk/go/uiClient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (u *UIClient) ListenSearchbar(ctx context.Context, handler ListenSearchHand
2929
break
3030
}
3131
if err != nil {
32-
handler(resp.Text, err)
32+
handler("", err)
3333
return
3434
}
3535
if resp.GetError() != "" {
@@ -58,7 +58,7 @@ func (u *UIClient) ListenGlobalSearch(ctx context.Context, handler ListenSearchH
5858
break
5959
}
6060
if err != nil {
61-
handler(resp.Text, err)
61+
handler("", err)
6262
return
6363
}
6464
if resp.GetError() != "" {

0 commit comments

Comments
 (0)