From 9dcfe06154f6bd7c1de2fab2e436b8251b7d5fca Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Sat, 31 May 2014 12:54:58 -0400 Subject: QuickSettings: Guard against bad input to handleShowDetail. Bug:15326440 Change-Id: I473cedb2c41dadf88596ea54a8f8a881ca4e27ba --- packages/SystemUI/src/com/android/systemui/qs/QSPanel.java | 1 + 1 file changed, 1 insertion(+) (limited to 'packages') diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java index c8cf05d..2bf369a 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java @@ -152,6 +152,7 @@ public class QSPanel extends ViewGroup { } private void handleShowDetail(TileRecord r, boolean show) { + if (r == null) return; AnimatorListener listener = null; if (show) { if (mDetailRecord != null) return; -- cgit v1.1