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

Tapestry throws a NPE if you try to configure an asset without an extension

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.0
    • Framework
    • None

    Description

      If you try to configure an asset pointing to a resource without an extension, let's say:

      <asset name="tr_curve_white" path="context:/images/tr_curve_white"/>

      Tapestry throws an NPE:

      1. java.lang.String.substring(String.java:1768)
      2. org.apache.tapestry.web.LocalizedWebContextResourceFinder.resolve(LocalizedWebContextResourceFinder.java:49)
      3. org.apache.tapestry.web.WebContextResource.getLocalization(WebContextResource.java:65)

      Attachments

        1. extensionlessResource.patch
          3 kB
          Raphael Jean

        Activity

          People

            hlship Howard Lewis Ship
            pazu Marcus Brito
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: