Repository navigation
[Uptime] Fix es query function null reference errors - #61465
Merged
justinkambic merged 1 commit intoMar 27, 2020
Merged
Conversation
Contributor
|
Pinging @elastic/uptime (Team:uptime) |
Contributor
💚 Build SucceededTo update your PR or re-run it, just comment with: |
justinkambic
marked this pull request as ready for review
March 26, 2020 16:48
Contributor
Author
|
I didn't create an issue for this because the fix took less time than it would've taken to document it with an issue, but if needed I'll gladly create one. |
justinkambic
added a commit
to justinkambic/kibana
that referenced
this pull request
Mar 27, 2020
justinkambic
added a commit
to justinkambic/kibana
that referenced
this pull request
Mar 27, 2020
justinkambic
added a commit
that referenced
this pull request
Mar 28, 2020
justinkambic
added a commit
that referenced
this pull request
Mar 28, 2020
Contributor
Author
|
Backported to: |
patrykkopycinski
pushed a commit
to patrykkopycinski/kibana
that referenced
this pull request
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This doesn't really happen in practice, but if the details page is loaded for a monitor that has no documents, we can encounter some null reference problems, which are logged in the Kibana log like so:
This patch adds some optional chaining to prevent these reference problems from happening.
Even though this doesn't happen much today, it could happen in the future if these query functions are utilized elsewhere in the app in the future.
For maintainers