mirror of https://github.com/M66B/FairEmail.git
Added fail-safe
This commit is contained in:
parent
23552f4da8
commit
2ca1aefa6d
|
@ -576,7 +576,10 @@ public class HtmlHelper {
|
||||||
if (BuildConfig.DEBUG)
|
if (BuildConfig.DEBUG)
|
||||||
for (Element e : document.select("span:matchesOwn(^UUID: " + Helper.REGEX_UUID + ")")) {
|
for (Element e : document.select("span:matchesOwn(^UUID: " + Helper.REGEX_UUID + ")")) {
|
||||||
String t = e.text();
|
String t = e.text();
|
||||||
String uuid = t.substring(t.indexOf(' ') + 1);
|
int sp = t.indexOf(' ');
|
||||||
|
if (sp < 0)
|
||||||
|
continue;
|
||||||
|
String uuid = t.substring(sp + 1);
|
||||||
e.html("UUID: <a href='" + BuildConfig.BUGSNAG_URI + uuid + "'>" + uuid + "</a>");
|
e.html("UUID: <a href='" + BuildConfig.BUGSNAG_URI + uuid + "'>" + uuid + "</a>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue