Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1658

NullPointerExceptions when joining an anonymous MUC

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.4
    • Component/s: None
    • Labels:
      None

      Description

      When Spark is used to join a MUC room that hides the real JID of occupants, a NullPointerException occurs:

      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      	at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
      	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:988)
      	at org.jivesoftware.smack.Roster.getPresence(Roster.java:469)
      	at org.jivesoftware.spark.PresenceManager.getPresence(PresenceManager.java:117)
      	at org.jivesoftware.spark.ui.conferences.GroupChatParticipantList.addParticipant(GroupChatParticipantList.java:354)
      	at org.jivesoftware.spark.ui.conferences.GroupChatParticipantList$3$1.run(GroupChatParticipantList.java:218)
      	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
      	at java.awt.EventQueue.access$300(EventQueue.java:103)
      	at java.awt.EventQueue$3.run(EventQueue.java:706)
      	at java.awt.EventQueue$3.run(EventQueue.java:704)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
      	at org.jivesoftware.sparkimpl.plugin.idle.UserIdlePlugin$1.dispatchEvent(UserIdlePlugin.java:182)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              guus Guus der Kinderen
              Reporter:
              guus Guus der Kinderen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: