BetterVideoPlayer icon indicating copy to clipboard operation
BetterVideoPlayer copied to clipboard

Player crashes , resultin

Open IamAKX opened this issue 6 years ago • 0 comments

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)

IamAKX avatar Oct 20 '18 23:10 IamAKX