Skip to content

Commit

Permalink
fix: NPE on generateRuleSet
Browse files Browse the repository at this point in the history
  • Loading branch information
purofle committed Feb 18, 2024
1 parent b34c012 commit ed5b75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/moe/matsuri/nb4a/SingBoxOptionsUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fun SingBoxOptions.DNSRule_DefaultOptions.checkEmpty(): Boolean {
}

fun SingBoxOptions.Rule_DefaultOptions.generateRuleSet(ruleSet: MutableList<RuleSet>) {
rule_set.forEach {
rule_set?.forEach {
when {
it.startsWith("geoip") -> {
val geoipPath = GeoipUtils.generateRuleSet(country = it.removePrefix("geoip:"))
Expand Down

0 comments on commit ed5b75e

Please sign in to comment.