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:
commit
183b8fb1d6
@ -359,7 +359,10 @@ public class MessageList extends ListActivity implements OnItemClickListener, On
|
|||||||
mSavedItemPosition = getListView().getFirstVisiblePosition();
|
mSavedItemPosition = getListView().getFirstVisiblePosition();
|
||||||
if (mSavedItemPosition >= 0) {
|
if (mSavedItemPosition >= 0) {
|
||||||
mSavedItemTop = 0;
|
mSavedItemTop = 0;
|
||||||
mSavedItemTop = getListView().getChildAt(0).getTop();
|
View topChild = getListView().getChildAt(0);
|
||||||
|
if (topChild != null) {
|
||||||
|
mSavedItemTop = topChild.getTop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user