Show empty page tip if getting empty html string

This commit is contained in:
seven332 committed 2019-05-07 19:31:39 +08:00
1 parent 3554fe1188
commit efe7d4757a
5 files changed
+8 -2

No files matched your search

@@ -102,8 +102,10 @@ public class EhEngine {
}
if (e instanceof ParseException) {
if (body != null && !body.contains("<")){
if (body != null && !body.contains("<")) {
throw new EhException(body);
} else if (TextUtils.isEmpty(body)) {
throw new EhException(GetText.getString(R.string.error_empty_html));
} else {
if (Settings.getSaveParseErrorBody()) {
AppConfig.saveParseErrorBody((ParseException) e);