From 417a0f256a9be11400e541c5e9f0cd4b5a140aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 29 Aug 2023 22:50:02 +0800 Subject: [PATCH] fix: nil pointer --- cmd/gocq/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gocq/main.go b/cmd/gocq/main.go index 886afbb54..6ee0d9c9d 100644 --- a/cmd/gocq/main.go +++ b/cmd/gocq/main.go @@ -167,7 +167,7 @@ func LoginInteract() { if err != nil { log.Warn(err) } - if len(signServer.URL) > 1 { + if signServer != nil && len(signServer.URL) > 1 { log.Infof("使用签名服务器:%v", signServer.URL) go signStartRefreshToken(base.Account.RefreshInterval) // 定时刷新 token wrapper.DandelionEnergy = energy