From f26e3ddf2c19abf6784421076b3989d3927ea8b1 Mon Sep 17 00:00:00 2001 From: mydongistiny Date: Mon, 1 Oct 2018 06:24:04 -0700 Subject: [ArrowOS][11.0] BurnInProtection: Fix null object reference with timer Happens when after flashing a build you let the screen turn off before unlocking Change-Id: I051b75531bf65c8cf3bbc4779fafdbae1a156686 Signed-off-by: mydongistiny --- .../android/systemui/statusbar/policy/BurnInProtectionController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BurnInProtectionController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BurnInProtectionController.java index cf24bf72d0a1..4b0a53c5cd16 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BurnInProtectionController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BurnInProtectionController.java @@ -91,6 +91,7 @@ public class BurnInProtectionController { public void stopSwiftTimer() { if (!mSwiftEnabled) return; + if (mTimer == null) return; mTimer.cancel(); mTimer.purge(); mTimer = null; -- cgit v1.2.3