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

NPE calling PackageResource.getResourceStream() if there is no RequestCycle defined

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.13.0, 6.14.0
    • Fix Version/s: 7.0.0-M1, 6.15.0
    • Component/s: None
    • Labels:
      None

      Description

      From my email on the list:

      Since the introduction of the ProcessingResourceStream, it's not
      possible to call PackageResource.getResourceStream() anymore if there
      is no RequestCycle defined.

      Typically, we call it in our Application init() to prepare (mostly
      preprocess and cache) a couple of resources before opening the
      application to the public.

      We now have a NPE here:
      https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/resource/PackageResource.java#L496

      This problem was introduced by this commit:
      https://github.com/apache/wicket/commit/29b26ffffdd619f4e2fe86aa2d2b02ff3e1d6017#diff-428db8d5278d2ac567e471efd377c7c7

      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              gsmet Guillaume Smet
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: