From 125fa06ca6bac66f790e4aba66887464189b3a63 Mon Sep 17 00:00:00 2001 From: bogadana <30848157+bogadana@users.noreply.github.com> Date: Sun, 10 Jul 2022 12:19:09 +0200 Subject: [PATCH] fix: null exception when resource patching is disabled (#85) --- src/main/kotlin/app/revanced/cli/patcher/Patcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/cli/patcher/Patcher.kt b/src/main/kotlin/app/revanced/cli/patcher/Patcher.kt index c1895ca4..10d3a944 100644 --- a/src/main/kotlin/app/revanced/cli/patcher/Patcher.kt +++ b/src/main/kotlin/app/revanced/cli/patcher/Patcher.kt @@ -42,7 +42,7 @@ internal object Patcher { } } - outputFileSystem.uncompress(*result.doNotCompress!!.toTypedArray()) + result.doNotCompress?.let { outputFileSystem.uncompress(*it.toTypedArray()) } } } }