Add missing node null check in AnimationDriver (#53462)

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

## Changelog:

[Internal] [Chanaged] - Add missing node null check in AnimationDriver

Reviewed By: lenaic

Differential Revision: D80949230

fbshipit-source-id: b08258671fbf0a011aa6a48501fdd83a706b1f1f
This commit is contained in:
Zeya Peng
2025-08-26 09:27:49 -07:00
committed by Facebook GitHub Bot
parent b7de7abd80
commit 7ea7c40e32
@@ -53,7 +53,7 @@ void AnimationDriver::startAnimation() {
void AnimationDriver::stopAnimation(bool /*ignoreCompletedHandlers*/) {
if (auto node =
manager_->getAnimatedNode<ValueAnimatedNode>(animatedValueTag_);
endCallback_) {
node != nullptr && endCallback_) {
endCallback_.value().call(
{.finished = true,
.value = node->getRawValue(),