Filter throwing java.lang.NullPointerException
Hello,
The Filter I'm trying to write is throwing a java.lang.NullPointerException error.
Following is the code from doFilter:
HttpServletRequest request = (HttpServletRequest) servletRequest;
HttpSession session = request.getSession(false);
ServletContext servletContext = session.getServletContext();
The 3rd line is what is throwing the error as session is null.
Thanks.

