fix(source.loginUI): filter null when arrays end with comma
see https://github.com/gedoor/legado/discussions/4650
This commit is contained in:
1 parent
d8864eed4a
commit
767d7e718f
1 file changed
+1
-1
@@ -67,7 +67,7 @@ interface BaseSource : JsExtensions {
|
|||||||
fun loginUi(): List<RowUi>? {
|
fun loginUi(): List<RowUi>? {
|
||||||
return GSON.fromJsonArray<RowUi>(loginUi).onFailure {
|
return GSON.fromJsonArray<RowUi>(loginUi).onFailure {
|
||||||
it.printOnDebug()
|
it.printOnDebug()
|
||||||
}.getOrNull()
|
}.getOrNull()?.filterNotNull() // filter null, see https://github.com/gedoor/legado/discussions/4650
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getLoginJs(): String? {
|
fun getLoginJs(): String? {
|
||||||
|
|||||||
Reference in new issue
Block a user