After autopublishing, a thread starts to close (unregister) the session, and this thread can execute before a call to unregister session in the invoking thread, resulting in a nullpointerexception when an attempt is made to fetch the user corresponding to an unregistered session.
After autopublishing, a thread starts to close (unregister) the session, and this thread can execute before a call to unregister session in the invoking thread, resulting in a nullpointerexception when an attempt is made to fetch the user corresponding to an unregistered session.
Fixed pending commit.