Commit 107666b9 authored by Tom Evans's avatar Tom Evans

More Hazelcast cleanup (fix NPE in ClusterListener)

parent 94e06b46
......@@ -457,7 +457,7 @@ public class ClusterListener implements MembershipListener, LifecycleListener {
}
public void entryRemoved(EntryEvent event) {
if (event.getValue() == null && ((Collection)event.getOldValue()).isEmpty()) {
if (event == null || (event.getValue() == null && event.getOldValue() == null)) {
// Nothing to remove
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment