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
I received the below crash when closing a fragment containing the BoxCastVideoView.
Steps to reproduce:
Opened the app
Went to the fragment containing the view
Because we are not currently live, the view was never started
Navigated away from the fragment
Crash
It looks like onDetatchedFromWindow() is assuming the view was started and a timer is present. Perhaps a null check might clear this up?
java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Timer.cancel()' on a null object reference at com.boxcast.android.view.BoxCastVideoView.cancelIntervalTimer(BoxCastVideoView.java:174) at com.boxcast.android.view.BoxCastVideoView.onDetachedFromWindow(BoxCastVideoView.java:128) at android.view.View.dispatchDetachedFromWindow(View.java:18400) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3769) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3769) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3769) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3769) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5359) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5330) at android.view.ViewGroup.removeView(ViewGroup.java:5261) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:973) at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238) at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:434) at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2079) at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1869) at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1824) at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1727) at androidx.fragment.app.FragmentManagerImpl$2.run(FragmentManagerImpl.java:150) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
The text was updated successfully, but these errors were encountered:
I received the below crash when closing a fragment containing the BoxCastVideoView.
Steps to reproduce:
It looks like onDetatchedFromWindow() is assuming the view was started and a timer is present. Perhaps a null check might clear this up?
java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Timer.cancel()' on a null object reference at com.boxcast.android.view.BoxCastVideoView.cancelIntervalTimer(BoxCastVideoView.java:174) at com.boxcast.android.view.BoxCastVideoView.onDetachedFromWindow(BoxCastVideoView.java:128) at android.view.View.dispatchDetachedFromWindow(View.java:18400) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3769) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3769) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3769) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3769) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5359) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5330) at android.view.ViewGroup.removeView(ViewGroup.java:5261) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:973) at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238) at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:434) at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2079) at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1869) at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1824) at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1727) at androidx.fragment.app.FragmentManagerImpl$2.run(FragmentManagerImpl.java:150) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
The text was updated successfully, but these errors were encountered: