Skip to content

Commit

Permalink
fix: nil pointer deref
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Apr 19, 2024
1 parent ae5a06b commit 15f6011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/sync/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ func generateRoles(
continue
}
}
roles[name] = *role
if role != nil {
roles[name] = *role
}
}
return roles
}
Expand Down

0 comments on commit 15f6011

Please sign in to comment.