I have a mistake that made me go crazy for several days. Unfortunately, I canโt show you the code for two reasons, my boss will not appreciate it, and the code base is too large for sharing. An error occurs when an Activity completes. The weather is because I call the finish line () or because os destroys it.
The question is what (or can) call execPendingActions () in FragmentManagerImpl to throw the NPE on line 1196.
Here is the stack:
FragmentManagerImpl.execPendingActions() line: 1196 FragmentManagerImpl$1.run() line: 375 Handler.handleCallback(Message) line: 587 Handler.dispatchMessage(Message) line: 92 Looper.loop() line: 126 ActivityThread.main(String[]) line: 3997 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 491 ZygoteInit$MethodAndArgsCaller.run() line: 841 ZygoteInit.main(String[]) line: 599 NativeStart.main(String[]) line: not available [native method]
source share