You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bu...@apache.org on 2004/06/25 16:04:49 UTC

DO NOT REPLY [Bug 29805] New: - NPE related to $remove$

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29805>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29805

NPE related to $remove$

           Summary: NPE related to $remove$
           Product: Tapestry
           Version: 3.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Framework
        AssignedTo: tapestry-dev@jakarta.apache.org
        ReportedBy: hlship@apache.org


If you use the $remove$ in the middle of the template, you can get a NPE.


An example HTML template:

<span jwcid="loopThreaded">        
        <span jwcid="repeatIndent">&nbsp;&nbsp;</span><span jwcid="$remove$">
            
         I hate it when the layout is dependent on there not being *any* 
spaces!

  </span>&nbsp;&middot;&nbsp;<b jwcid="markMostRecent"><a 
jwcid="linkToMessageDetail"><span jwcid="threadedLinkSubject"/></a></b>
  <span class="smalltext">by
  <a href="#" jwcid="threadedLinkPoster"><span jwcid="@Insert" 
value="ognl:threadedMessage.fullName"/></a>
  on <span jwcid="insertThreadedLinkPostTime"/>
  </span>


Stack Trace: 
org.apache.tapestry.AbstractMarkupWriter.printRaw
(AbstractMarkupWriter.java:749) 
org.apache.tapestry.parse.TextToken.render(TextToken.java:89) 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:624) 
org.apache.tapestry.components.Foreach.renderComponent(Foreach.java:122) 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)

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