mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 07:25:23 +00:00
The REST GET API was trying to render a null watch on GET which was causing an NPE. Don't render the watch if it's not found and add a test for this case. Fixes: elastic/elasticsearch#202 Original commit: elastic/x-pack-elasticsearch@0c8afa63ba