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

Commit 7f49f3b1 authored by Scott Mertz's avatar Scott Mertz Committed by Gerrit Code Review
Browse files

SystemUI: ensure volume record exists before showing notification

In certain CTS test cases, a NPE occurs here due to the mounted volume
not existing in the volume record database.

Change-Id: I1c02eeacf0e86bfb8bf611d5cd9a4e52baf6809a
parent b446cbb6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -327,7 +327,7 @@ public class StorageNotification extends SystemUI {

        // Don't annoy when user dismissed in past.  (But make sure the disk is adoptable; we
        // used to allow snoozing non-adoptable disks too.)
        if (rec.isSnoozed() && disk.isAdoptable()) {
        if (rec == null || (rec.isSnoozed() && disk.isAdoptable())) {
            return null;
        }