From 30f10709c786341e02107bb4443578cb65fbb811 Mon Sep 17 00:00:00 2001 From: qydysky Date: Fri, 8 Dec 2023 20:22:51 +0800 Subject: [PATCH] Fix panic #90 --- Reply/stream.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Reply/stream.go b/Reply/stream.go index 4b44c06..89940d1 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -111,6 +111,9 @@ func (t *m4s_link_item) isInit() bool { func (t *m4s_link_item) getNo() (int, error) { var base = t.Base + if t.Base == "" { + return 0, nil + } if t.isInit() { base = base[1:] } -- 2.39.2