diff --git a/packages/core/ui/frame/index.android.ts b/packages/core/ui/frame/index.android.ts index ec8cf4671..b2f60cda9 100644 --- a/packages/core/ui/frame/index.android.ts +++ b/packages/core/ui/frame/index.android.ts @@ -1110,7 +1110,9 @@ class ActivityCallbacksImplementation implements AndroidActivityCallbacks { rootView._saveFragmentsState(); } - outState.putInt(ROOT_VIEW_ID_EXTRA, rootView._domId); + if (rootView) { + outState.putInt(ROOT_VIEW_ID_EXTRA, rootView._domId); + } } @profile