Hi,

On Mon, Mar 10, 2014 at 4:15 PM, Guillaume Smet <[email protected]>wrote:

> Hi,
>
> 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
>
> Should I open a JIRA about this?
>

Sure.
We can pass empty Request/Response to the Attributes in the case when there
is no RequestCycle.


>
> Thanks for your feedback.
>
> --
> Guillaume
>

Reply via email to