Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Player crashes , resultin #73

Open
IamAKX opened this issue Oct 20, 2018 · 0 comments
Open

Player crashes , resultin #73

IamAKX opened this issue Oct 20, 2018 · 0 comments

Comments

@IamAKX
Copy link

IamAKX commented Oct 20, 2018

When player is initialised in the adapter , initially it works fine. But when go to another activity and come back from that activity to the fragment where RecyclerView is set, and try to play the video again, the app crashes.

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Handler.removeCallbacks(java.lang.Runnable)' on a null object reference
        at com.halilibo.bettervideoplayer.BetterVideoPlayer.toggleControls(BetterVideoPlayer.java:524)
        at com.halilibo.bettervideoplayer.BetterVideoPlayer$6.onClick(BetterVideoPlayer.java:1206)
        at com.halilibo.bettervideoplayer.OnSwipeTouchListener$1.run(OnSwipeTouchListener.java:18)
        at android.os.Handler.handleCallback(Handler.java:790)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6499)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant