summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2011-02-16 11:32:39 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-02-16 11:32:39 -0800
commit439f5c6b39fe648da835d4c86dfcffed0f46dd94 (patch)
tree106ea2a0601182170d525c2634ad6584644a7cd3 /packages
parentd33a4ccb5c3b58406cee45a4d933d40219177f8c (diff)
parentbec7d63c9cad875bb127786d61ee34b4d609db59 (diff)
downloadframeworks_base-439f5c6b39fe648da835d4c86dfcffed0f46dd94.zip
frameworks_base-439f5c6b39fe648da835d4c86dfcffed0f46dd94.tar.gz
frameworks_base-439f5c6b39fe648da835d4c86dfcffed0f46dd94.tar.bz2
Merge "Fix NPE."
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java
index a072aed..a8f4262 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java
@@ -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;