Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in FireTVService$Subscription #2

Open
softvision-ionutgavris opened this issue Jul 20, 2015 · 2 comments
Open

Comments

@softvision-ionutgavris
Copy link
Contributor

We usually call selectedDevice.getCapability(MediaControl.class).subscribePlayState(null);

As you can see the listener is null for this request. Other services check for null listeners.
In my opinion the FireTVService should not add null listeners in the listeners ArrayList.

java.lang.NullPointerException: Attempt to invoke interface method 'void com.connectsdk.service.capability.listeners.ResponseListener.onSuccess(java.lang.Object)' on a null object reference
at com.connectsdk.service.FireTVService$Subscription$1.run(FireTVService.java:636)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5696)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)

@softvision-ionutgavris
Copy link
Contributor Author

#3

@oleksii-frolov
Copy link
Contributor

The test was added for this case here 40e2e53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants