diff --git a/internal/sync/roles.go b/internal/sync/roles.go index a1162fb..36957db 100644 --- a/internal/sync/roles.go +++ b/internal/sync/roles.go @@ -215,7 +215,9 @@ func generateRoles( continue } } - roles[name] = *role + if role != nil { + roles[name] = *role + } } return roles }