Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2418

NPE in ResourceReference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.6, 1.3.7, 1.4.0
    • 1.4.1
    • wicket
    • None

    Description

      Referencing a resource located in a different jar-file (and therefore possibly in a different (parent-)classloader), the ResourceReference fails to add this resource.

      The problem is, that the lookup-and-bind-code after correctly recognizing and adding this PackageResource, falls through to the "normal" resource-add which leads to a NPE in ConcurrentHashMap.

      Fix is trivial, patch is appended.

      Attachments

        1. ResourceReference.java.patch
          0.4 kB
          Stefan Schueffler
        2. ResourceReference.java.patch
          0.4 kB
          Stefan Schueffler

        Activity

          People

            ivaynberg Igor Vaynberg
            schueffi Stefan Schueffler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified