You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Thorsten Schöning <ts...@am-soft.de> on 2019/10/01 08:39:15 UTC

Re: NPE at org.wicketstuff.rest.injection.InjectResourceTest.testInjection(InjectResourceTest.java:59)

Guten Tag Thorsten Schöning,
am Montag, 30. September 2019 um 12:06 schrieben Sie:

>> -------------------------------------------------------------------------------
>> Test set: org.wicketstuff.rest.injection.InjectResourceTest
>> -------------------------------------------------------------------------------
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.414 s <<< FAILURE! - in org.wicketstuff.rest.injection.InjectResourceTest
>> testInjection(org.wicketstuff.rest.injection.InjectResourceTest)  Time elapsed: 1.357 s  <<< ERROR!
>> java.lang.NullPointerException
>>         at org.wicketstuff.rest.injection.InjectResourceTest.testInjection(InjectResourceTest.java:59)

Just in case anyone else comes across this thread: I'm building Wicket
Stuff using a path with spaces and some places in the code use
URL.getFile, which doesn't properly decode that. Instead of failing
because of some missing path, resources for the test seemed to have
simply not been provided as expected. Changing that to properly
decode the URL fixes the build.

https://github.com/wicketstuff/core/pull/678

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow