From 97729cb3dc8bfd4b827e422245b9910c4eb17bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Tue, 28 Oct 2025 09:16:00 +0300 Subject: [PATCH] fix nil pointer --- web/controller/inbound.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web/controller/inbound.go b/web/controller/inbound.go index bdad7e43..aebcefb9 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -88,6 +88,7 @@ func (a *InboundController) initRouter(g *gin.RouterGroup) { func (a *InboundController) getInbounds(c *gin.Context) { user := session.GetLoginUser(c) if user == nil { + user = &model.User{} user.Id = 1 } inbounds, err := a.inboundService.GetInbounds(user.Id)