Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2448

Asset.getClientURL() throws NPE if the Asset is a Folder within a SubModule JAR file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      If you inject in a Field an Asset and if this Asset is actually a Folder that is embedded into a JAR SubModule used by the main Tapestry WebApp then the method toClientURL() returns a NPE.

      The issue does not happen when the SubModule is not yet a JAR file. Exemple : when you are running Tomcat from Eclipse and let Eclipse manage the dependency ( I am using the Sysdeo plugin to add dependencies to the source folders of the SubModule instead of the JAR file. ).

        Attachments

        1. folder.zip
          7.89 MB
          Martin Papy
        2. NPE_Stack_Trace.txt
          21 kB
          Martin Papy

          Issue Links

            Activity

              People

              • Assignee:
                jkemnade Jochen Kemnade
                Reporter:
                kheldar666 Martin Papy
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: