1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -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:
Jesse Vincent 2010-07-29 22:17:29 +00:00
parent c6aa505ffe
commit 0bb115ca42

View File

@ -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)
{