Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix null-ref exception when track total hits is disabled #341

Merged
merged 2 commits into from
Sep 4, 2023
Merged

Fix null-ref exception when track total hits is disabled #341

merged 2 commits into from
Sep 4, 2023

Conversation

otuncelli
Copy link
Contributor

Description

Fixes NullReferenceException when accessing SearchResponse<TDocument>.Total property if TrackTotalHits is false.

Issues Resolved

None

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Collaborator

@Xtansia Xtansia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @otuncelli, Thank you for the PR! The change looks good, only thing missing is adding an entry to the CHANGELOG.md under the Fixed header: https://github.com/opensearch-project/opensearch-net/blob/main/CHANGELOG.md#fixed

Signed-off-by: Osman Tunçelli <[email protected]>
@Xtansia Xtansia merged commit fcfcae7 into opensearch-project:main Sep 4, 2023
@Xtansia Xtansia added the backport 1.x Backport to 1.x branch label Sep 4, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2023
* Fix null-ref exception when track total hits is disabled

Signed-off-by: Osman Tunçelli <[email protected]>

* update changelog

Signed-off-by: Osman Tunçelli <[email protected]>

---------

Signed-off-by: Osman Tunçelli <[email protected]>
Co-authored-by: Osman Tunçelli <[email protected]>
(cherry picked from commit fcfcae7)
Xtansia pushed a commit that referenced this pull request Sep 4, 2023
* Fix null-ref exception when track total hits is disabled

Signed-off-by: Osman Tunçelli <[email protected]>

* update changelog

Signed-off-by: Osman Tunçelli <[email protected]>

---------

Signed-off-by: Osman Tunçelli <[email protected]>
Co-authored-by: Osman Tunçelli <[email protected]>
(cherry picked from commit fcfcae7)

Co-authored-by: Osman Tunçelli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.x Backport to 1.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants