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 when safePopTo #33

Open
JoyHong opened this issue Nov 12, 2021 · 1 comment
Open

NullPointerException when safePopTo #33

JoyHong opened this issue Nov 12, 2021 · 1 comment

Comments

@JoyHong
Copy link

JoyHong commented Nov 12, 2021

java.lang.NullPointerException:
at android.view.ViewGroup.removeViewInternal (ViewGroup.java:5300)
at android.view.ViewGroup.removeViewAt (ViewGroup.java:5263)
at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState (FragmentManager.java:1446)
at androidx.fragment.app.FragmentManager.moveToState (FragmentManager.java:1497)
at androidx.fragment.app.BackStackRecord.executeOps (BackStackRecord.java:447)
at androidx.fragment.app.FragmentManager.executeOps (FragmentManager.java:2169)
at androidx.fragment.app.FragmentManager.executeOpsTogether (FragmentManager.java:1992)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute (FragmentManager.java:1947)
at androidx.fragment.app.FragmentManager.execPendingActions (FragmentManager.java:1849)
at androidx.fragment.app.FragmentManager.popBackStackImmediate (FragmentManager.java:641)
at androidx.fragment.app.FragmentManager.popBackStackImmediate (FragmentManager.java:596)
at me.yokeyword.fragmentation.TransactionDelegate.safePopTo (TransactionDelegate.java:503)
at me.yokeyword.fragmentation.TransactionDelegate.access$800 (TransactionDelegate.java:34)
at me.yokeyword.fragmentation.TransactionDelegate$5.run (TransactionDelegate.java:232)
at me.yokeyword.fragmentation.queue.ActionQueue.handleAction (ActionQueue.java:58)
at me.yokeyword.fragmentation.queue.ActionQueue.enqueueAction (ActionQueue.java:46)
at me.yokeyword.fragmentation.queue.ActionQueue.access$000 (ActionQueue.java:17)
at me.yokeyword.fragmentation.queue.ActionQueue$1.run (ActionQueue.java:37)
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:6548)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:857)

@aa86799
Copy link

aa86799 commented Apr 28, 2022

image

fragment may be null ?

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