diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java index b9c8a6c2358ddc..f1d28f26bf55fd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java @@ -1026,13 +1026,14 @@ public View getView(int reactTag) { } private @Nullable ViewState getNullableViewState(int tag) { - if (mTagToViewState == null) { + ConcurrentHashMap viewStates = mTagToViewState; + if (viewStates == null) { return null; } if (ReactFeatureFlags.enableDelayedViewStateDeletion) { mScheduledForDeletionViewStateTags.remove(tag); } - return mTagToViewState.get(tag); + return viewStates.get(tag); } @SuppressWarnings("unchecked") // prevents unchecked conversion warn of the type