I'm looking at GEODE-2236 <https://issues.apache.org/jira/browse/GEODE-2236> and protecting against the NPE is trivial. But the question is, what is the right way to do this? What is the syntax people would expect to use?
What if there are multiple listeners and you wanted to delete one or more of them?