Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix null pointer exception during preview #74

Merged
merged 1 commit into from
Mar 24, 2020

Commits on Mar 23, 2020

  1. Fix that preview exits with null pointer exception

    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
    kaituo committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    0a725df View commit details
    Browse the repository at this point in the history