diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt index 5693e4d78..19326cbf6 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt @@ -260,7 +260,7 @@ class AnalyzeRule(private var book: BaseBook? = null) { while (putMatcher.find()) { ruleStr = ruleStr.replace(putMatcher.group(), "") val map = GSON.fromJsonObject>(putMatcher.group(1)) - putRule(map) + map?.let { putRule(map) } } return ruleStr }