Null Pointer Exception when service descriptor couldn't be retrieved

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Null Pointer Exception when service descriptor couldn't be retrieved

lluki
Hiho

I let Cling Workbench run and start MythTVFrontend. It does somehow provide a wrong URL for the description XML. Nevertheless, cling shouldn't throw a npe.

If cling cant retrieve a service descriptor

WARNING - 16:04:19:113 - Thread 33 (Active: 4) : cling.protocol.RetrieveRemoteDescriptors.describeService : Service descriptor retrieval failed:500 Internal Server Error

then describeService (in org.teleal.cling.protocol.RetrieveRemoteDescriptors.describeService) will return null. But then in org.teleal.cling.model.meta.Device.validate() validate on these objects is called without null checks.

Greets
Luki

PS: Do you have a public bugtracker? :)
Reply | Threaded
Open this post in threaded view
|

Re: Null Pointer Exception when service descriptor couldn't be retrieved

Christian Bauer
Administrator
lluki wrote
then describeService (in org.teleal.cling.protocol.RetrieveRemoteDescriptors.describeService) will return null. But then in org.teleal.cling.model.meta.Device.validate() validate on these objects is called without null checks.
Good catch, I fixed the NPE in trunk.

PS: Do you have a public bugtracker? :)
I guess there isn't enough traffic at this time to justify a dedicated bugtracker. Just continue posting here :)