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

Commit 07b43a2b authored by Jakob Schneider's avatar Jakob Schneider
Browse files

Fix NPE during boot if monochrome icon is missing.

Test: Cts boot test for archived apps coming later
Bug: 282952870
Change-Id: Ib3c335308b15d6dff96b4ae8418cc1915a7f4134
parent 9d287d85
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2065,8 +2065,10 @@ public final class Settings implements Watchable, Snappable, ResilientAtomicFile
                        ATTR_ARCHIVE_ACTIVITY_TITLE);
                Path iconPath = Path.of(parser.getAttributeValue(null,
                        ATTR_ARCHIVE_ICON_PATH));
                Path monochromeIconPath = Path.of(parser.getAttributeValue(null,
                        ATTR_ARCHIVE_MONOCHROME_ICON_PATH));
                String monochromeAttribute = parser.getAttributeValue(null,
                        ATTR_ARCHIVE_MONOCHROME_ICON_PATH);
                Path monochromeIconPath = monochromeAttribute == null ? null : Path.of(
                        monochromeAttribute);

                if (title == null || iconPath == null) {
                    Slog.wtf(TAG,