Skip to content
Permalink
Browse files

Fix potential NPE is layout animation deletion code

Reviewed By: dmmiller

Differential Revision: D3403930

fbshipit-source-id: 20067542d06396997719bbe963ce87403fae5ac3
  • Loading branch information
olinotteghem authored and Facebook Github Bot 9 committed Jun 8, 2016
1 parent c0ac0d5 commit bb9ed2d24c63b56aedb254c3758b3fb0560339b7
@@ -412,7 +412,10 @@ public void onAnimationEnd() {
}
}

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;

0 comments on commit bb9ed2d

Please sign in to comment.
You can’t perform that action at this time.