diff --git a/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt b/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt index 1fb5f90c..333c0741 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt @@ -53,7 +53,8 @@ internal class IconManager( zip.setLevel(BEST_SPEED) val entries = mutableSetOf() packageService.allUserPackages.forEach { - val drawable = packageManager.getApplicationIcon(it.applicationInfo) + val applicationInfo = it.applicationInfo ?: return@forEach + val drawable = packageManager.getApplicationIcon(applicationInfo) if (packageManager.isDefaultApplicationIcon(drawable)) return@forEach val entry = ZipEntry(it.packageName) zip.putNextEntry(entry)