Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e14b9040 authored by Julia Tuttle's avatar Julia Tuttle
Browse files

Fix NullPointerException on AlertEntry.reset()

Log the removal of the auto remove callbacks for the entry *before*
setting the entry to null, so logAutoRemoveCanceled doesn't crash.

Bug: 284418902
Test: manual, trigger some HUNs
Change-Id: I2cc80829bbd9ebc4c11a4b664a6c865fe676f97d
parent b071327a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -329,8 +329,8 @@ public abstract class AlertingNotificationManager {
        }

        public void reset() {
            mEntry = null;
            removeAutoRemovalCallbacks("reset()");
            mEntry = null;
            mRemoveAlertRunnable = null;
        }