mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
b7de7abd80
commit
7ea7c40e32
+1
-1
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user