[ http://issues.apache.org/jira/browse/TAPESTRY-896?page=all ]
     
Jesse Kuhnert resolved TAPESTRY-896:
------------------------------------

    Fix Version: 4.0.1
     Resolution: Fixed
      Assign To: Jesse Kuhnert

Added hivemind Defense check to incoming type parameter.

> using <component id="x" copy-of="x"> throws NullPointerException
> ----------------------------------------------------------------
>
>          Key: TAPESTRY-896
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-896
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Ron Piterman
>     Assignee: Jesse Kuhnert
>     Priority: Minor
>      Fix For: 4.0.1

>
> When the copy-of is the same as the id, tapestry does not detect the problem, 
> but a NullPointerException is thrown on
> # 
> org.apache.tapestry.resolver.ComponentSpecificationResolverImpl.resolve(ComponentSpecificationResolverImpl.java:95)
> # 
> $ComponentSpecificationResolver_10a31b1a2d5.resolve($ComponentSpecificationResolver_10a31b1a2d5.java)
> # 
> $ComponentSpecificationResolver_10a31b1a2d6.resolve($ComponentSpecificationResolver_10a31b1a2d6.java)
> # 
> org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:393)
> # org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:613)
> # $IPageLoader_10a31b1a2c3.loadPage($IPageLoader_10a31b1a2c3.java)
> # $IPageLoader_10a31b1a2c4.loadPage($IPageLoader_10a31b1a2c4.java)
> # org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:120)
> # $IPageSource_10a31b1a216.getPage($IPageSource_10a31b1a216.java)
> # $IPageSource_10a31b1a215.getPage($IPageSource_10a31b1a215.java)
> # org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:268)
> # org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:251)
> ...
> maybe a check should be added somewhere, then again, maybe its very rair that 
> someone makes this typo...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to