diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java index 7ffe35967..00b00d89c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java @@ -412,7 +412,10 @@ public class NativeViewHierarchyManager { } } - private boolean arrayContains(int[] array, int ele) { + private boolean arrayContains(@Nullable int[] array, int ele) { + if (array == null) { + return false; + } for (int curEle : array) { if (curEle == ele) { return true;