Show empty page tip if getting empty html string
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user