This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix that preview exits with null pointer exception (#74)
Recently, we changed the anomaly result index’s schema and toXContent method by introducing a few fields. During the preview, some of the fields in anomaly result index can be null. Thus, toXContent can fail with a null pointer exception. This PR fixes the issue by protecting a field’s serialization with a null check. Testing done: - Manually verified the issue is gone - gradle build
- Loading branch information
Showing
2 changed files
with
13 additions
and
6 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