From 1591816684f78e41390fa86143262a9b3335a534 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Mon, 14 Nov 2022 18:07:54 +0100 Subject: [PATCH] fixed nil pointer when no API entry found --- api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api.go b/api.go index c0c9b2f..fb63f02 100644 --- a/api.go +++ b/api.go @@ -90,6 +90,10 @@ func requestPaged[R any](api *Api, ctx context.Context, query string, vars map[s return } + if resp.Data.Page == nil { + return + } + for _, value := range resp.Data.Page.Data() { value := value select {