commit | e34c6513bb1a4d3e246866c2a7f0619914f18bd3 | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Thu Aug 14 11:19:41 2014 +0200 |
committer | Selim Cinek <cinek@google.com> | Thu Aug 14 09:26:04 2014 +0000 |
tree | 85e5b17297026118433a20155a62d4897a668811 | |
parent | f645761f475d9248ef8af9338409487dec4a7375 [diff] [blame] |
Fixed a NPE during setup wizard The heightChangedListener might not be set. Bug: 17000238 Change-Id: I3e930d22eeaeea5984c089d3f76c91997e4a2b01
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java index df64edf..5b0bf03 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java
@@ -256,7 +256,9 @@ } public void reset() { - mOnHeightChangedListener.onReset(this); + if (mOnHeightChangedListener != null) { + mOnHeightChangedListener.onReset(this); + } } /**