From bdebd3f226fbdaae49bc896c0471def71eb55d96 Mon Sep 17 00:00:00 2001 From: tamarleviCm Date: Thu, 15 Aug 2024 12:56:46 +0300 Subject: [PATCH] fix panic --- internal/services/projects.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/services/projects.go b/internal/services/projects.go index fb2c4a0bb..8ec6bc171 100644 --- a/internal/services/projects.go +++ b/internal/services/projects.go @@ -35,6 +35,7 @@ func FindProject( params["names"] = projectName resp, _, err := projectsWrapper.Get(params) if err != nil { + if err != nil || resp == nil { return "", err }