Add animationBackend_ nullcheck before calling clearRegistry() (#56679)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56679

## Changelog:

[Internal] [Fixed] - Add animationBackend_ nullcheck before calling clearRegistry()

Reviewed By: christophpurrer

Differential Revision: D103759679

fbshipit-source-id: f42a19071570fea62260a7472e487108dfd64c69
This commit is contained in:
Zeya Peng authored and meta-codesync[bot] committed 2026-05-05 14:59:29 -07:00
1 parent 0d20210fbe
commit c33582bca0
1 file changed
+2 -1
@@ -210,7 +210,8 @@ void UIManager::completeSurface(
// after we commit a specific one.
lazyShadowTreeRevisionConsistencyManager_->updateCurrentRevision(surfaceId);
if (ReactNativeFeatureFlags::useSharedAnimatedBackend()) {
if (ReactNativeFeatureFlags::useSharedAnimatedBackend() &&
animationBackend_) {
animationBackend_->clearRegistry(surfaceId);
}
}