From 8ef9e84c31275021e539b21f1c0daab1a408e55e Mon Sep 17 00:00:00 2001 From: sayan7848 Date: Thu, 3 Oct 2019 08:03:43 +0000 Subject: [PATCH] Avoid a rogue SystemUI crash A nullpointer exception occured when opening LiquidLounge>StatusBar or LiquidLounge>Notifications for the first time after a clean flash. This is a stopgap fix until we figure out the real reason behind the exception. Signed-off-by: sayan7848 --- .../systemui/statusbar/phone/CollapsedStatusBarFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java index 0eae8ce29d7..5b3940dbf0b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java @@ -443,6 +443,8 @@ private void setCarrierLabel(boolean animate) { } public void updateLogoSettings(boolean animate) { + if (getContext() == null) + return; mShowLogo = Settings.System.getIntForUser( getContext().getContentResolver(), Settings.System.STATUS_BAR_LOGO, 0, UserHandle.USER_CURRENT) == 1;