From 2f358dd943fc24b1e6eabcd5d5f135c51e33e81b Mon Sep 17 00:00:00 2001 From: purofle Date: Sat, 17 Feb 2024 18:03:26 +0800 Subject: [PATCH] fix: rule_set must be not null --- app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt b/app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt index c589054b..d709eff8 100644 --- a/app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt +++ b/app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt @@ -535,7 +535,7 @@ fun buildConfig( makeSingBoxRule(rule.ip.listByLineOrComma(), true) } - generateRuleSet(ruleSets) + if (rule_set != null) generateRuleSet(ruleSets) if (rule.port.isNotBlank()) { port = mutableListOf()