From cc9a3e27c20ca86ff302ce5e3ef3cdc91c1283e8 Mon Sep 17 00:00:00 2001 From: Joshua Gross Date: Fri, 5 Feb 2021 00:54:02 -0800 Subject: [PATCH] LayoutAnimations: ensure that interpolated props are never null Summary: ensure that interpolated props are never null Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D26271516 fbshipit-source-id: d012e530e92dabce1e0a7df8edf670e90367a892 --- .../react/renderer/animations/LayoutAnimationKeyFrameManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp index b3097b7a834..799ca81792d 100644 --- a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +++ b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp @@ -1658,6 +1658,7 @@ ShadowView LayoutAnimationKeyFrameManager::createInterpolatedShadowView( // Animate opacity or scale/transform mutatedShadowView.props = componentDescriptor.interpolateProps( progress, startingView.props, finalView.props); + assert(mutatedShadowView.props != nullptr); // Interpolate LayoutMetrics LayoutMetrics const &finalLayoutMetrics = finalView.layoutMetrics;