Catch OOM

This commit is contained in:
M66B 2019-11-11 20:23:34 +01:00
parent 55ba8e036e
commit 48a75e068c
1 changed files with 9 additions and 0 deletions

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;