am b4c547a5: Fix possible NPE in AbsListView.positionSelector().

Merge commit 'b4c547a56caebb5900c132ec9d5ce953f89de14f' into eclair-plus-aosp

* commit 'b4c547a56caebb5900c132ec9d5ce953f89de14f':
  Fix possible NPE in AbsListView.positionSelector().
This commit is contained in:
Romain Guy
2009-09-28 13:55:30 -07:00
committed by Android Git Automerger
2 changed files with 2 additions and 2 deletions

View File

@@ -1150,7 +1150,7 @@ public class GridView extends AbsListView {
mSelectedTop = sel.getTop();
} else if (mTouchMode > TOUCH_MODE_DOWN && mTouchMode < TOUCH_MODE_SCROLL) {
View child = getChildAt(mMotionPosition - mFirstPosition);
positionSelector(child);
if (child != null) positionSelector(child);
} else {
mSelectedTop = 0;
mSelectorRect.setEmpty();

View File

@@ -1567,7 +1567,7 @@ public class ListView extends AbsListView {
} else {
if (mTouchMode > TOUCH_MODE_DOWN && mTouchMode < TOUCH_MODE_SCROLL) {
View child = getChildAt(mMotionPosition - mFirstPosition);
positionSelector(child);
if (child != null) positionSelector(child);
} else {
mSelectedTop = 0;
mSelectorRect.setEmpty();