fix(android): onSaveInstanceState should not crash when no rootView is set (#9447)

This commit is contained in:
Eduardo Speroni
2021-08-11 14:41:24 -03:00
committed by GitHub
parent 490f7dce80
commit ee3c4c2009

View File

@@ -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