mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: only run list option check if not null
This commit is contained in:
parent
85120374d6
commit
4055939c08
1 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ sealed class PatchOption<T>(
|
|||
}
|
||||
) {
|
||||
init {
|
||||
if (default !in options) {
|
||||
if (default != null && default !in options) {
|
||||
throw IllegalStateException("Default option must be an allowed option")
|
||||
}
|
||||
}
|
||||
|
@ -227,4 +227,4 @@ sealed class PatchOption<T>(
|
|||
validator(it?.toFile())
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue