mirror of https://github.com/M66B/FairEmail.git
Catch OOM
This commit is contained in:
parent
55ba8e036e
commit
48a75e068c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue