When I try to get the session from the request, it causes a null pointer exception if the session is expired. Given below is a part of the code. I get ...