Hi Mark,

On Thu, Apr 28, 2011 at 6:04 PM, Mark Adamcin <[email protected]> wrote:
> The output from a direct request to the test URL is successful:
>
> curl -u admin:admin
> http://localhost:4502/apps/geometrixx/test-content/example.test.txt
> TEST_PASSED

ok

>
> It looks like there is a NullPointerException being thrown by the
> ParameterSupport class when it tries to iterate over the request parameter
> map entries when TestAllPaths attempts to render the test resource. It seems
> like there should be a null check in the ParameterSupport class to prevent
> the NPE, but perhaps it might be a good idea to return an empty map instead
> of null in the
> org.apache.sling.junit.scriptable.HttpRequest.getParameterMap()
> implemententation.
>
> Is this something I could submit a patch for?...

Yes, makes sense, thanks for your analysis!

-Bertrand

Reply via email to