mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-26 01:48:45 +00:00
When attempting to a get a watch that does not exist, the listener is called once inside an if statement and the execution of the method continues as if the watch existed. This causes failures to happen including a NPE. This commit wraps the execution in a if-else to prevent this. Original commit: elastic/x-pack-elasticsearch@27f09852e7