0 Replies Latest reply on Jul 17, 2014 1:30 AM by wmz7year

    hazelcast plugin issue in version 1.2.1

    wmz7year

           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<JID> getHandlers(EntryEvent event) {

                                    Object value = event.getValue();

                                    Collection<JID> answer = new ArrayList<JID>();

                                    for (DirectedPresence directedPresence : (Collection<DirectedPresence>) value) {

                                              answer.add(directedPresence.getHandler());

                                    }

                                    return answer;

                          }

       

           I made the following changes to fix it.

           Collection<JID> getHandlers(EntryEvent event) {

                                    Object value = event.getValue();

                                    Collection<JID> answer = new ArrayList<JID>();

                                    if (value == null) {

                                              return answer;

                                    }

                                    for (DirectedPresence directedPresence : (Collection<DirectedPresence>) value) {

                                              answer.add(directedPresence.getHandler());

                                    }

                                    return answer;

                          }

       

                Doing right´╝č