Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4647

PushContextImpl send - NPE when no channel found for user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.0, 4.0.1
    • 4.0.2, 4.1.0-RC1, 5.0.0
    • None
    • None

    Description

      When trying to send a push message to a user who has already destroyed his web socket connection, PushContextImpl.send throws NPE

      java.lang.NullPointerException: Cannot invoke "java.util.Set.size()" because "channelTokenSet" is null
          at org.apache.myfaces.push.cdi.PushContextImpl.send(PushContextImpl.java:134)
          at org.apache.myfaces.push.cdi.PushContextImpl.send(PushContextImpl.java:122)

      Method should be null safe, just to continue with next user identification.

      Attachments

        Activity

          People

            Unassigned Unassigned
            milansi Milan Siebenbürger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: