Skip to content

Commit 7ea7c40

Browse files
zeyapfacebook-github-bot
authored andcommitted
Add missing node null check in AnimationDriver (#53462)
Summary: Pull Request resolved: #53462 ## Changelog: [Internal] [Chanaged] - Add missing node null check in AnimationDriver Reviewed By: lenaic Differential Revision: D80949230 fbshipit-source-id: b08258671fbf0a011aa6a48501fdd83a706b1f1f
1 parent b7de7ab commit 7ea7c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactCommon/react/renderer/animated/drivers/AnimationDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void AnimationDriver::startAnimation() {
5353
void AnimationDriver::stopAnimation(bool /*ignoreCompletedHandlers*/) {
5454
if (auto node =
5555
manager_->getAnimatedNode<ValueAnimatedNode>(animatedValueTag_);
56-
endCallback_) {
56+
node != nullptr && endCallback_) {
5757
endCallback_.value().call(
5858
{.finished = true,
5959
.value = node->getRawValue(),

0 commit comments

Comments
 (0)