Wicket
  1. Wicket
  2. WICKET-4380

Null url argument on missing static resource

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.3, 1.5.4
    • Fix Version/s: 1.5.5, 6.0.0-beta1
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      All tested (Jetty via Maven, deploy into Tomcat)

      Description

      The WebExternalResourceStream doesn't check the return value of the ServletContext#getResource, which could be null. When the reference is given to the Connections#lastModified method this will cause a complaint several call layers down stating the URL argument may not be null. The null value is a result of the referenced static resource missing, thus the servlet container is correctly returning null (as per the Servlet spec).

      1. WERS-npe.patch
        1 kB
        Mark Eschbach
      2. WERS-bug.zip
        24 kB
        Mark Eschbach

        Activity

          People

          • Assignee:
            Emond Papegaaij
            Reporter:
            Mark Eschbach
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development