From: qydysky Date: Fri, 8 Dec 2023 12:22:51 +0000 (+0800) Subject: Fix panic #90 X-Git-Tag: v0.11.10~1 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=30f10709c786341e02107bb4443578cb65fbb811;p=bili_danmu%2F.git Fix panic #90 --- 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:] }