-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(notifier): Handle nil pointer dereference
At notifier/plotting.go inside fetchAvailableSeries in case of error returned from `metricsSource.Fetch` only `local.ErrEvaluateTargetFailedWithPanic` was checked. Another errors did not handled properly and function was trying to call mehods of fetch result which became nil. That caused Nil Pointer Dereference panic. Add proper error handling to prevent nil pointer dereference. Closes #437
- Loading branch information
litleleprikon
committed
Nov 21, 2019
1 parent
3fa28a3
commit 04054d1
Showing
2 changed files
with
106 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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