Fix potential NPE is layout animation deletion code
Reviewed By: dmmiller Differential Revision: D3403930 fbshipit-source-id: 20067542d06396997719bbe963ce87403fae5ac3
This commit is contained in:
parent
c0ac0d5071
commit
bb9ed2d24c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue