You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem including expected versus actual behavior:
SearchResponse.Documents throws a null ref exception because HitsMetadata is null (and/or possibly HitsMetadata.Hits).
Stacktrace:
at Elastic.Clients.Elasticsearch.SearchResponse`1.get_Documents() in /_/src/Elastic.Clients.Elasticsearch.Shared/Api/SearchResponse.cs:line 21
Expected behavior
Should not throw an exception. HitsMetadata/Hits being null should be handled gracefully.
The Documents property and also Hits property should handle HitsMetadata being null and also declare correct nullability.
The text was updated successfully, but these errors were encountered:
Elastic.Clients.Elasticsearch version:
8.15.5
Description of the problem including expected versus actual behavior:
SearchResponse.Documents throws a null ref exception because HitsMetadata is null (and/or possibly HitsMetadata.Hits).
Stacktrace:
at Elastic.Clients.Elasticsearch.SearchResponse`1.get_Documents() in /_/src/Elastic.Clients.Elasticsearch.Shared/Api/SearchResponse.cs:line 21
Expected behavior
Should not throw an exception. HitsMetadata/Hits being null should be handled gracefully.
The Documents property and also Hits property should handle HitsMetadata being null and also declare correct nullability.
The text was updated successfully, but these errors were encountered: