mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Empty note when not matching Jsoup
This commit is contained in:
@@ -1349,6 +1349,7 @@ public class EntityRule {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
|
||||
if (html != null) {
|
||||
Document d = JsoupEx.parse(html);
|
||||
String selector = notes.substring(JSOUP_PREFIX.length());
|
||||
@@ -1362,7 +1363,9 @@ public class EntityRule {
|
||||
}
|
||||
|
||||
Element e = d.select(selector).first();
|
||||
if (e != null) {
|
||||
if (e == null)
|
||||
notes = null;
|
||||
else {
|
||||
notes = e.ownText();
|
||||
if (!TextUtils.isEmpty(regex)) {
|
||||
Pattern p = Pattern.compile(regex);
|
||||
|
||||
Reference in New Issue
Block a user