I believe this is the result of a race condition involving multiple tickers under load. The fix simply guards against the null pointer.

Bug: 3448450
Change-Id: Icc78c89890f0a41c574f7077b1b450e9fd4ca28b
This commit is contained in:
Daniel Sandler
2011-02-15 14:24:58 -05:00
parent a54e872500
commit bec7d63c9c

View File

@@ -158,7 +158,9 @@ public class TabletTicker
private void advance() {
// Out with the old...
if (mCurrentView != null) {
mWindow.removeView(mCurrentView);
if (mWindow != null) {
mWindow.removeView(mCurrentView);
}
mCurrentView = null;
mCurrentKey = null;
mCurrentNotification = null;