am c6aaeb99: Merge change 27229 into eclair

Merge commit 'c6aaeb99424862cf5ae249e5c6a5a1c8ce7cd24c' into eclair-plus-aosp

* commit 'c6aaeb99424862cf5ae249e5c6a5a1c8ce7cd24c':
  Fix NPE issue in empty MessageList (fixes #2147432)
This commit is contained in:
Marc Blank 2009-09-27 11:27:00 -07:00 committed by Android Git Automerger
commit 183b8fb1d6

View File

@ -359,7 +359,10 @@ public class MessageList extends ListActivity implements OnItemClickListener, On
mSavedItemPosition = getListView().getFirstVisiblePosition();
if (mSavedItemPosition >= 0) {
mSavedItemTop = 0;
mSavedItemTop = getListView().getChildAt(0).getTop();
View topChild = getListView().getChildAt(0);
if (topChild != null) {
mSavedItemTop = topChild.getTop();
}
}
}
}