Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26c15a11 authored by cnx421's avatar cnx421
Browse files

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



This CL fixes a bug in AbsListView when it move offset,but its ChildCount was zero and the firstChild
view was null object reference

Bug: N/A

Change-Id: I1c9ccd9807201fd107fe14e051f3f8e7b0cc530d
Signed-off-by: default avatarcnx421 <cnx421@gmail.com>
parent 32bfd77b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;