From f48fd822e055da272f9e821db56db98591a35cfe Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 4 Aug 2011 15:57:39 -0400 Subject: Fix another NPE. Bug: 5122306 Change-Id: I6877528325d30bb725f8692c86a8752263b5344e --- .../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 25eab26af403..228f2854a207 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -1873,7 +1873,7 @@ public class PhoneStatusBar extends StatusBar { } void updateExpandedSize() { - if (mExpandedDialog != null && mExpandedParams != null) { + if (mExpandedDialog != null && mExpandedParams != null && mDisplaySize != null) { mExpandedParams.width = mDisplaySize.x; mExpandedParams.height = getExpandedHeight(mDisplaySize.y); if (!mExpandedVisible) { -- cgit v1.2.3-59-g8ed1b