You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.
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)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: