Nullpointer in session fixed