diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/Binding.cpp b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/Binding.cpp index b3915ff3afe..6cb64b8049a 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/Binding.cpp +++ b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/Binding.cpp @@ -109,11 +109,13 @@ void Binding::reportMount(SurfaceId surfaceId) { // incorrectly. This is due to the push model used on Android and can be // removed when we migrate to a pull model. std::shared_lock lock(surfaceHandlerRegistryMutex_); - auto iterator = surfaceHandlerRegistry_.find(surfaceId); if (iterator != surfaceHandlerRegistry_.end()) { auto& surfaceHandler = iterator->second; surfaceHandler.getMountingCoordinator()->didPerformAsyncTransactions(); + } else { + LOG(ERROR) << "Binding::reportMount: Surface with id " << surfaceId + << " is not found"; } }