1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Catch OOM

This commit is contained in:
M66B 2019-11-11 20:23:34 +01:00
parent 55ba8e036e
commit 48a75e068c

View file

@ -609,6 +609,15 @@ public class HtmlHelper {
}
static String getPreview(String body) {
try {
return _getPreview(body);
} catch (OutOfMemoryError ex) {
Log.e(ex);
return null;
}
}
private static String _getPreview(String body) {
if (body == null)
return null;