[
https://issues.apache.org/jira/browse/WICKET-2418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Schueffler updated WICKET-2418:
--------------------------------------
Attachment: ResourceReference.java.patch
Just verified in my local test environment...
Using this patch it also works by adding the packageResource twice (one time
without style, name, etc, and one time with) by avoiding the NPE.
> NPE in ResourceReference
> ------------------------
>
> Key: WICKET-2418
> URL: https://issues.apache.org/jira/browse/WICKET-2418
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.6, 1.3.7, 1.4.0
> Reporter: Stefan Schueffler
> Attachments: ResourceReference.java.patch,
> ResourceReference.java.patch
>
> Original Estimate: 0.08h
> Remaining Estimate: 0.08h
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.