Fix potential NPE is layout animation deletion code

Reviewed By: dmmiller

Differential Revision: D3403930

fbshipit-source-id: 20067542d06396997719bbe963ce87403fae5ac3
This commit is contained in:
Olivier Notteghem 2016-06-08 08:11:56 -07:00 committed by Facebook Github Bot 9
parent c0ac0d5071
commit bb9ed2d24c
1 changed files with 4 additions and 1 deletions

View File

@ -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;