Hello Roland,
the line where the NullPointerException is thrown is:
resourceStream = new ResourceReference(MyApplication.PROFILE_STANDARD)
.getResource().getResourceStream();
If I am using only this ResourceReference then it works. But I dont know why
the Exception is thrown.
greetings
Roland Huss wrote:
>
>
> greeklinux wrote:
>>
>>
>> ....
>>
>> But now I get a NullPointerException:
>> at .....PhotoUploadPage$1.getResourceStream(PhotoUploadPage.java:66)
>> at org.apache.wicket.Resource.init(Resource.java:199)
>> at
>> org.apache.wicket.Resource.onResourceRequested(Resource.java:105)
>> at
>> org.apache.wicket.markup.html.image.resource.LocalizedImageResource.onResourceRequested(LocalizedImageResource.java:198)
>> at
>> org.apache.wicket.markup.html.image.Image.onResourceRequested(Image.java:147)
>>
>
> Where in the code snippet that you posted is line 66 at which this NPE has
> occured ?
>
>
> ...roland
>
--
View this message in context:
http://www.nabble.com/Resource-SharedResource---Display-an-image-tp18348115p18363284.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]