ConnectSDK / Connect-SDK-Android-Core

Core source code for the Android Connect SDK project
Apache License 2.0
114 stars 79 forks source link

DLNA event subscription crashing application #32

Closed se-bastiaan closed 9 years ago

se-bastiaan commented 9 years ago

My Sony Bravia television is (sometimes) detected as DLNA device, but not all the services have a subscription, so eventSubURL = null. If the DLNAService then runs subscribeServices(), it will iterate the complete list and it doesn't check for null values in the eventSubUrl field. Result: crash.

https://github.com/ConnectSDK/Connect-SDK-Android-Core/blob/1.4.3/src/com/connectsdk/service/DLNAService.java#L1058

AndroidStudioDebug

oleksii-frolov commented 9 years ago

It was fixed here https://github.com/ConnectSDK/Connect-SDK-Android-Core/pull/33 and https://github.com/ConnectSDK/Connect-SDK-Android-Core/commit/5fdaaa2a53ebf36848463cb41db875b0b014cf15