JSP - NullPointerException is being thrown ... does anyone know why and what needs to be corrected ?
I have a jsp page which has the following code in it. % if(session.isNew() == false session.getAttribute(XYZ).equals(true)) { % // do some HTML % } else { % // do some HTML % } % The following exception is thrown:
Re: JSP - NullPointerException is being thrown ... does anyone know why and what needs to be corrected ?
Found the bug. basically i need to check if session.getAttribute(param) == null or not before using that object . thanks. On Friday, February 14, 2003, at 12:39 PM, Mufaddal wrote: I have a jsp page which has the following code in it. % if(session.isNew() == false