mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Actually catch an OOM in getTextFromPart
Backport an update to getTextFromPart from AOSP as of 290348 - dealing with OOM as we import large messages
This commit is contained in:
parent
c6aa505ffe
commit
0bb115ca42
@ -398,6 +398,15 @@ public class MimeUtility
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch (OutOfMemoryError oom)
|
||||
{
|
||||
/*
|
||||
* If we are not able to process the body there's nothing we can do about it. Return
|
||||
* null and let the upper layers handle the missing content.
|
||||
*/
|
||||
Log.e(K9.LOG_TAG, "Unable to getTextFromPart " + oom.toString());
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user