mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Move Size check before accessing type of transform
Summary: Changelog: [Android][Fixed] - Move Size check before accessing type of transform Reviewed By: JoshuaGross, kacieb Differential Revision: D21605800 fbshipit-source-id: eb3eb3c3e2992e2e117e6e0af53fbe939e09d971
This commit is contained in:
committed by
Facebook GitHub Bot
parent
480fc28f08
commit
4001966fb6
@@ -52,7 +52,7 @@ public class TransformHelper {
|
||||
// copy that directly. This is for Fabric LayoutAnimations support.
|
||||
// All of the stuff this Java helper does is already done in C++ in Fabric, so we
|
||||
// can just use that matrix directly.
|
||||
if (transforms.getType(0) == ReadableType.Number && transforms.size() == 16) {
|
||||
if (transforms.size() == 16 && transforms.getType(0) == ReadableType.Number) {
|
||||
for (int i = 0; i < transforms.size(); i++) {
|
||||
result[i] = transforms.getDouble(i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user