Null url argument on missing static resource
--------------------------------------------
Key: WICKET-4380
URL: https://issues.apache.org/jira/browse/WICKET-4380
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 1.5.4, 1.5.3
Environment: All tested (Jetty via Maven, deploy into Tomcat)
Reporter: Mark Eschbach
Priority: Minor
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).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira