Merge "fix 'int android.view.View.getHeight()' on a null object reference"

This commit is contained in:
Treehugger Robot
2019-03-08 00:19:39 +00:00
committed by Gerrit Code Review

View File

@@ -7700,6 +7700,11 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
mLastSeenPos = firstPos;
final int childCount = getChildCount();
if (childCount <= 0) {
return;
}
final int position = mTargetPos;
final int lastPos = firstPos + childCount - 1;