{"action":"opened","issue":{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-FireTV/issues/2","labels_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-FireTV/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-FireTV/issues/2/comments","events_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-FireTV/issues/2/events","html_url":"https://github.com/ConnectSDK/Connect-SDK-Android-FireTV/issues/2","id":96053968,"number":2,"title":"NullPointerException in FireTVService$Subscription","user":{"login":"softvision-ionutgavris","id":2893539,"avatar_url":"https://avatars.githubusercontent.com/u/2893539?v=3","gravatar_id":"","url":"https://api.github.com/users/softvision-ionutgavris","html_url":"https://github.com/softvision-ionutgavris","followers_url":"https://api.github.com/users/softvision-ionutgavris/followers","following_url":"https://api.github.com/users/softvision-ionutgavris/following{/other_user}","gists_url":"https://api.github.com/users/softvision-ionutgavris/gists{/gist_id}","starred_url":"https://api.github.com/users/softvision-ionutgavris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softvision-ionutgavris/subscriptions","organizations_url":"https://api.github.com/users/softvision-ionutgavris/orgs","repos_url":"https://api.github.com/users/softvision-ionutgavris/repos","events_url":"https://api.github.com/users/softvision-ionutgavris/events{/privacy}","received_events_url":"https://api.github.com/users/softvision-ionutgavris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-20T12:31:51Z","updated_at":"2015-07-20T12:31:51Z","closed_at":null,"body":"We usually call selectedDevice.getCapability(MediaControl.class).subscribePlayState(null);\r\n\r\nAs you can see the listener is null for this request. Other services check for null listeners.\r\nIn my opinion the FireTVService should not add null listeners in the listeners ArrayList.\r\n\r\njava.lang.NullPointerException: Attempt to invoke interface method 'void com.connectsdk.service.capability.listeners.ResponseListener.onSuccess(java.lang.Object)' on a null object reference\r\n            at com.connectsdk.service.FireTVService$Subscription$1.run(FireTVService.java:636)\r\n            at android.os.Handler.handleCallback(Handler.java:739)\r\n            at android.os.Handler.dispatchMessage(Handler.java:95)\r\n            at android.os.Looper.loop(Looper.java:155)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5696)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)"}}