On 28/11/2013 14:06, Francesco Bassi wrote:
> Hello everybody.
>
> I have a doubt:
>
> whenever the HttpSession expires, I get a NullPointerException on
> WsServerContainer.unregisterAuthenticatedSession
>
> in this line:
>
> private void unregisterAuthenticatedSession(WsSession wsSession,
> String httpSessionId) {
> Set<WsSession> wsSessions =
> authenticatedSessions.get(httpSessionId);
> --> wsSessions.remove(wsSession);
> }
>
>
> The quick fix is obvious:
>
> private void unregisterAuthenticatedSession(WsSession wsSession,
> String httpSessionId) {
> Set<WsSession> wsSessions =
> authenticatedSessions.get(httpSessionId);
> if(wsSessions!=null) wsSessions.remove(wsSession);
> }
>
> but I suspect that the error is elsewhere.
>
> What do you think?
The quick fix looks like the right fix to me.
I've applied the fix to trunk for 8.0.0-RC6 and 7.0.x for 7.0.48.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]