feat: 修复崩溃bug

pull/238/head
gedoor 5 years ago
parent dc6efbb514
commit b02c81f89d
  1. 10
      app/src/main/java/io/legado/app/data/entities/BookSource.kt

@ -179,7 +179,7 @@ data class BookSource(
class Converters {
@TypeConverter
fun exploreRuleToString(exploreRule: ExploreRule?): String {
fun exploreRuleToString(exploreRule: ExploreRule?): String? {
return GSON.toJson(exploreRule)
}
@ -189,7 +189,7 @@ data class BookSource(
}
@TypeConverter
fun searchRuleToString(searchRule: SearchRule): String {
fun searchRuleToString(searchRule: SearchRule?): String? {
return GSON.toJson(searchRule)
}
@ -199,7 +199,7 @@ data class BookSource(
}
@TypeConverter
fun bookInfoRuleToString(bookInfoRule: BookInfoRule): String {
fun bookInfoRuleToString(bookInfoRule: BookInfoRule?): String? {
return GSON.toJson(bookInfoRule)
}
@ -209,7 +209,7 @@ data class BookSource(
}
@TypeConverter
fun tocRuleToString(tocRule: TocRule): String {
fun tocRuleToString(tocRule: TocRule?): String? {
return GSON.toJson(tocRule)
}
@ -219,7 +219,7 @@ data class BookSource(
}
@TypeConverter
fun contentRuleToString(contentRule: ContentRule): String {
fun contentRuleToString(contentRule: ContentRule?): String? {
return GSON.toJson(contentRule)
}

Loading…
Cancel
Save