Skip to content

Commit

Permalink
Handle nil pointer to AggregationBucketKeyItems
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus authored and notque committed Dec 4, 2019
1 parent dca8ada commit dc4f93e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func (es ElasticSearch) GetAttributes(filter *AttributeFilter, tenantID string)
}
if termsAggRes == nil {
util.LogDebug("termsAggRes is nil")
return nil, nil
}
util.LogDebug("Number of Buckets: %d", len(termsAggRes.Buckets))

Expand Down

0 comments on commit dc4f93e

Please sign in to comment.