Hi,

On Tue, Apr 3, 2018 at 3:24 PM, Rakesh A <iamrakes...@rediffmail.com> wrote:

> I see the ticket https://issues.apache.org/jira/browse/WICKET-6547 closed
> as
> 'resolved' with resolution 'not a problem'. Instead of reopening it I
> wanted
> to discuss the usecase here and decide on re-opening.
>
> Is is allowed to call 'Session.isSessionInvalidated()' from
> 'WebSession.onInvalidate()' ?
> Java doc doesn't say much about its usage (when to or When not to).
>

I agree that more information should be added to the javadoc!


>
> We are using #onInvalidate() as a hook to do some cleanup. With 6.29.0
> because of a call to isSessionInvlaidated() we get a NullPointerException.
>

Why do you use "isSessionInvlaidated()" ?
Since "onInvalidate()" is called that means the Session is no more valid.
What extra information do you get from isSessionInvlaidated() ?


> WICKET-6547.7z
> <http://apache-wicket.1842946.n4.nabble.com/file/t374719/WICKET-6547.7z>
>
> Regards,
> Rakesh.A
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842
> 947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to