From adfd42d2206c6c252e3331cf75dd16c36120e7f2 Mon Sep 17 00:00:00 2001 From: srinandan <13950006+srinandan@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:43:23 -0800 Subject: [PATCH] bug: fixes nil pointer exception in appgroups #411 --- internal/client/appgroups/appgroups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/client/appgroups/appgroups.go b/internal/client/appgroups/appgroups.go index c22389e25..3f328b7e1 100644 --- a/internal/client/appgroups/appgroups.go +++ b/internal/client/appgroups/appgroups.go @@ -361,7 +361,7 @@ func readAppGroupsFile(filePath string) ([]appgroup, error) { } func getMapAttributes(attrs []attribute) map[string]string { - var custAttrs map[string]string + custAttrs := make(map[string]string, len(attrs)) for _, a := range attrs { custAttrs[a.Name] = a.Value }