Is the attribute "XYZ" for sure defined?  The stacked .equals without a
check for a null could easily give you a NullPointer.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 2/14/03 12:09:13 AM >>>
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:



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to