Milan Siebenbürger created MYFACES-4647:
-------------------------------------------
Summary: PushContextImpl send - NPE when no channel found for user
Key: MYFACES-4647
URL: https://issues.apache.org/jira/browse/MYFACES-4647
Project: MyFaces Core
Issue Type: Task
Affects Versions: 4.0.1, 4.0.0
Reporter: Milan Siebenbürger
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)