diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f8ed4e..00533c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## [4.1.3](https://github.com/revanced/revanced-patcher/compare/v4.1.2...v4.1.3) (2022-09-07) + + +### Bug Fixes + +* only run list option check if not null ([4055939](https://github.com/revanced/revanced-patcher/commit/4055939c089e3c396c308c980215d93a1dea5954)) + +## [4.1.2](https://github.com/revanced/revanced-patcher/compare/v4.1.1...v4.1.2) (2022-09-07) + + +### Bug Fixes + +* invalid types for example options ([79f91e0](https://github.com/revanced/revanced-patcher/commit/79f91e0e5a6d99828f30aae55339ce0d897394c7)) + ## [4.1.1](https://github.com/revanced/revanced-patcher/compare/v4.1.0...v4.1.1) (2022-09-07) diff --git a/gradle.properties b/gradle.properties index 21a4dd6..0aa885c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style = official -version = 4.1.1 +version = 4.1.3 diff --git a/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt b/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt index 629a49b..61fdae6 100644 --- a/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt +++ b/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt @@ -168,7 +168,7 @@ sealed class PatchOption( } ) { init { - if (default !in options) { + if (default != null && default !in options) { throw IllegalStateException("Default option must be an allowed option") } } @@ -237,4 +237,4 @@ sealed class PatchOption( validator(it?.toFile()) } ) -} \ No newline at end of file +}