mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-06-13 05:37:38 +02:00
fix: only run list option check if not null
This commit is contained in:
@ -158,7 +158,7 @@ sealed class PatchOption<T>(
|
|||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
init {
|
init {
|
||||||
if (default !in options) {
|
if (default != null && default !in options) {
|
||||||
throw IllegalStateException("Default option must be an allowed option")
|
throw IllegalStateException("Default option must be an allowed option")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -227,4 +227,4 @@ sealed class PatchOption<T>(
|
|||||||
validator(it?.toFile())
|
validator(it?.toFile())
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user