From 31e4a41dd20f5fa62f840cd8e3b92fe0814eda87 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 1 Jan 2023 18:05:37 +0100 Subject: [PATCH] fix: do not list compatible packages if patches do not define them --- src/main/kotlin/app/revanced/cli/command/MainCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt index 4ebd462..85eec70 100644 --- a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt @@ -220,7 +220,7 @@ internal object MainCommand : Runnable { for (patchBundlePath in args.patchArgs?.patchBundles!!) for (patch in PatchBundle.Jar(patchBundlePath) .loadPatches()) { if (patch.patchName in logged) continue - for (compatiblePackage in patch.compatiblePackages!!) { + for (compatiblePackage in patch.compatiblePackages ?: continue) { val packageEntryStr = buildString { // Add package if flag is set if (args.patchArgs?.listingArgs?.withPackages == true) {