NullPointerException from SpecialEffectsController

It's frustrating to me that Google doesn't appear to index their own issue tracker. I'm posting this here to improve visibility of this crash.

I have not been able to reproduce this crash. All I have to go on so far are stack traces.
For example, in this stack trace, our app has received an Intent which includes a deeplink. To handle this, we attempt to close an open Fragment before creating the new one, hence the call to popBackStackImmediate():
java.lang.NullPointerException: Attempt to invoke virtual method 'float android.view.View.getAlpha()' on a null object reference
at androidx.fragment.app.SpecialEffectsController$Operation$State.from(SpecialEffectsController.java:409)
at androidx.fragment.app.SpecialEffectsController.markPostponedState(SpecialEffectsController.java:236)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2094)
at androidx.fragment.app.FragmentManager.popBackStackImmediate(FragmentManager.java:781)
at androidx.fragment.app.FragmentManager.popBackStackImmediate(FragmentManager.java:692)
at com.bleacherreport.android.teamstream.utils.HomeClubhouseFragmentStateManager$ManagerInterface.popBackStackImmediate(HomeClubhouseFragmentStateManager.java:225)
at com.bleacherreport.android.teamstream.utils.HomeClubhouseFragmentStateManager.onBackPressed(HomeClubhouseFragmentStateManager.java:107)
at com.bleacherreport.android.teamstream.clubhouses.streams.HomeClubhouseActivity.handleIntent(HomeClubhouseActivity.java:1413)
at com.bleacherreport.android.teamstream.clubhouses.streams.HomeClubhouseActivity.access$900(HomeClubhouseActivity.java:222)
at com.bleacherreport.android.teamstream.clubhouses.streams.HomeClubhouseActivity$9$1.run(HomeClubhouseActivity.java:1182)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8506)
at java.lang.reflect.Method.invoke(Method.java:-2)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

When I searched for this exception, I got no search results, so I reported it to Google in issue 188103502. This was marked as a duplicate of issue 183634730. I'm posting this here to improve visibility of this issue.
Search terms I used:
  • NullPointerException
  • SpecialEffectsController
  • getAlpha()



comments powered by Disqus