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

[Heartbeat] Fix NPE on monitor configuration errors #11910

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

andrewvc
Copy link
Contributor

These errors cause the newMonitor constructor to return a nil object plus error. Without a nil check we get an NPE.

Fixes #11747

@andrewvc andrewvc added bug in progress Pull request is currently in progress. Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team labels Apr 23, 2019
@andrewvc andrewvc requested a review from ruflin April 23, 2019 22:40
@andrewvc andrewvc requested a review from a team as a code owner April 23, 2019 22:40
@andrewvc andrewvc self-assigned this Apr 23, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/uptime

@andrewvc andrewvc force-pushed the fix-npe-stopping-new-monitor branch from 8807805 to 41c11b9 Compare April 23, 2019 22:46
These errors cause the `newMonitor` constructor to return a nil object plus error. Without a nil check we get an NPE.

Fixes elastic#11747
@andrewvc andrewvc force-pushed the fix-npe-stopping-new-monitor branch from 41c11b9 to bc506ad Compare April 23, 2019 22:48
@andrewvc andrewvc added review needs_backport PR is waiting to be backported to other branches. and removed in progress Pull request is currently in progress. labels Apr 23, 2019
@andrewvc andrewvc merged commit ac37fa3 into elastic:master Apr 24, 2019
andrewvc added a commit to andrewvc/beats that referenced this pull request Apr 24, 2019
These errors cause the `newMonitor` constructor to return a nil object plus error. Without a nil check we get an NPE.

Fixes elastic#11747

(cherry picked from commit ac37fa3)
@andrewvc andrewvc added v7.2.0 and removed needs_backport PR is waiting to be backported to other branches. labels Apr 24, 2019
andrewvc added a commit to andrewvc/beats that referenced this pull request Apr 24, 2019
These errors cause the `newMonitor` constructor to return a nil object plus error. Without a nil check we get an NPE.

Fixes elastic#11747

(cherry picked from commit ac37fa3)
andrewvc added a commit that referenced this pull request Apr 26, 2019
These errors cause the `newMonitor` constructor to return a nil object plus error. Without a nil check we get an NPE.

Fixes #11747

(cherry picked from commit ac37fa3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Heartbeat exits when autodiscover fields are used for id
3 participants