Skip to content

Commit

Permalink
CLOUDP-220676: NPE in default_setter_opts.go
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaangiolillo committed Jan 3, 2024
1 parent 6b393d6 commit bbb4cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/default_setter_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (opts *DefaultSetterOpts) orgs(filter string) (results interface{}, err err
}
switch r := orgs.(type) {
case *atlasv2.PaginatedOrganization:
if *r.TotalCount == 0 {
if r.TotalCount == nil || *r.TotalCount == 0 {
return nil, errNoResults
}
if *r.TotalCount > resultsLimit {
Expand Down

0 comments on commit bbb4cc3

Please sign in to comment.