tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szemere (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-2114) Boolean property named 'getX' used in .tml causes NPE
Date Sat, 02 Feb 2008 20:14:08 GMT
Boolean property named 'getX' used in .tml causes NPE
-----------------------------------------------------

                 Key: TAPESTRY-2114
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2114
             Project: Tapestry
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.0.7
         Environment: Jetty, Tapestry 5.0.7, WinXP
            Reporter: Szemere
            Priority: Minor


If you have a getter like
boolean getReportNotNull() in the page java file and reference it in the .tml file as:
<t:if test="reportNotNull">
then Tapestry parses it okay and validates fine, but it blows up with an NPE when it comes
to render.

A clear solution is to always name it isReportNotNull, but I believe the error reporting should
be better and this may be symptomatic of a larger issue.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message