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

Guard against null geoBoundingBox (#50506) #50608

Conversation

andreidan
Copy link
Contributor

A geo box with a top value of Double.NEGATIVE_INFINITY will yield an empty
xContent which translates to a null geoBoundingBox. This commit marks the
field as Nullable and guards against null when retrieving the topLeft
and bottomRight fields.

Fixes #50505

(cherry picked from commit 051718f)
Signed-off-by: Andrei Dan andrei.dan@elastic.co

Backport of #50506

A geo box with a top value of Double.NEGATIVE_INFINITY will yield an empty
xContent which translates to a null `geoBoundingBox`. This commit marks the
field as `Nullable` and guards against null when retrieving the `topLeft`
and `bottomRight` fields.

Fixes elastic#50505

(cherry picked from commit 051718f)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
@andreidan andreidan merged commit 856607b into elastic:7.x Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant