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

Commit 7710eba4 authored by Jimmy Hu's avatar Jimmy Hu Committed by Android (Google) Code Review
Browse files

Merge "Fix possible NPE in StorageNotification."

parents 0064f5a0 a31fd420
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -381,7 +381,7 @@ public class StorageNotification implements CoreStartable {

        // 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;
        }
        if (disk.isAdoptable() && !rec.isInited() && rec.getType() != VolumeInfo.TYPE_PUBLIC