Skip to content

Commit f2e47d8

Browse files
committed
[LOCAL] Apply patch on top of #49951 - see pick request 1009
1 parent 56ad8d9 commit f2e47d8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,15 @@ public void updateProps(int reactTag, ReadableMap props) {
685685
return;
686686
}
687687

688-
ViewState viewState = getViewState(reactTag);
688+
ViewState viewState = getNullableViewState(reactTag);
689+
690+
if (viewState == null) {
691+
ReactSoftExceptionLogger.logSoftException(
692+
ReactSoftExceptionLogger.Categories.SURFACE_MOUNTING_MANAGER_MISSING_VIEWSTATE,
693+
new ReactNoCrashSoftException(
694+
"Unable to find viewState for tag: " + reactTag + " for updateProps"));
695+
return;
696+
}
689697
viewState.mCurrentProps = new ReactStylesDiffMap(props);
690698
View view = viewState.mView;
691699

0 commit comments

Comments
 (0)