From e0a8544a146d33eebf02d7f20d8c505f56ec0901 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 8 Nov 2019 22:13:59 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/http/AjaxWebView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt b/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt index c242e879f..a871ee801 100644 --- a/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt +++ b/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt @@ -182,7 +182,7 @@ class AjaxWebView { private val mWebView: WeakReference = WeakReference(webView) override fun run() { mWebView.get()?.evaluateJavascript(mJavaScript) { - if (it.isNotEmpty()) { + if (it.isNotEmpty() && it != "null") { val content = StringEscapeUtils.unescapeJson(it) handler.obtainMessage(MSG_SUCCESS, Response(url, content)) .sendToTarget()