Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-896

using <component id="x" copy-of="x"> throws NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0
    • 4.0.1
    • Framework
    • None

    Description

      When the copy-of is the same as the id, tapestry does not detect the problem, but a NullPointerException is thrown on

      1. org.apache.tapestry.resolver.ComponentSpecificationResolverImpl.resolve(ComponentSpecificationResolverImpl.java:95)
      2. $ComponentSpecificationResolver_10a31b1a2d5.resolve($ComponentSpecificationResolver_10a31b1a2d5.java)
      3. $ComponentSpecificationResolver_10a31b1a2d6.resolve($ComponentSpecificationResolver_10a31b1a2d6.java)
      4. org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:393)
      5. org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:613)
      6. $IPageLoader_10a31b1a2c3.loadPage($IPageLoader_10a31b1a2c3.java)
      7. $IPageLoader_10a31b1a2c4.loadPage($IPageLoader_10a31b1a2c4.java)
      8. org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:120)
      9. $IPageSource_10a31b1a216.getPage($IPageSource_10a31b1a216.java)
      10. $IPageSource_10a31b1a215.getPage($IPageSource_10a31b1a215.java)
      11. org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:268)
      12. 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...

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            ronp Ron Piterman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: