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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.4
    • 5.4
    • tapestry-core
    • 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. NPE_Stack_Trace.txt
          21 kB
          Martin Papy
        2. folder.zip
          7.89 MB
          Martin Papy

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment