powered by Jive Software

Hazelcast plugin issue in version 1.2.1

When some users on different nodes occur when operating the exception muc

Because there is no check event.getValue () is empty

The NullPointerException is in ClusterListener.java 474

Collection getHandlers(EntryEvent event) {

Object value = event.getValue();

Collection answer = new ArrayList();

for (DirectedPresence directedPresence : (Collection) value) {

answer.add(directedPresence.getHandler());

}

return answer;

}

I made the following changes to fix it.

Collection getHandlers(EntryEvent event) {

Object value = event.getValue();

Collection answer = new ArrayList();

if (value == null) {

return answer;

}

for (DirectedPresence directedPresence : (Collection) value) {

answer.add(directedPresence.getHandler());

}

return answer;

}

Doing right´╝č