Skip to content
This repository was archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Check if child view != null before dropping. Fixes facebook#20288
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Chrusciel committed Jul 31, 2018
1 parent 847261b commit 09daee6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ protected synchronized void dropView(View view) {
ViewGroupManager viewGroupManager = (ViewGroupManager) viewManager;
for (int i = viewGroupManager.getChildCount(viewGroup) - 1; i >= 0; i--) {
View child = viewGroupManager.getChildAt(viewGroup, i);
if (mTagsToViews.get(child.getId()) != null) {
if (child != null && mTagsToViews.get(child.getId()) != null) {
dropView(child);
}
}
Expand Down

0 comments on commit 09daee6

Please sign in to comment.