mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Catch OOM
This commit is contained in:
parent
55ba8e036e
commit
48a75e068c
1 changed files with 9 additions and 0 deletions
|
@ -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 a new issue