Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-203


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: WW-203
    Summary: error in ww:if tag when test expression doesn't evaluate to a boolean
       Type: Bug

     Status: Assigned
   Priority: Major

    Project: WebWork
 Components: 
             Views
   Versions:
             2.0

   Assignee: Patrick Lightbody
   Reporter: Cameron Braid

    Created: Tue, 3 Jun 2003 1:25 AM
    Updated: Tue, 3 Jun 2003 1:25 AM

Description:
when using the ww:if tag, if the test expression doesn't result in a boolean value, 
then doEndTag causes a NPE when setting the answer into the page context.

a Single line fix that works is 

    public int doEndTag() throws JspException {
-->>        if (answer != null)
                pageContext.setAttribute(ANSWER, answer);

        return EVAL_PAGE;
    }



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to