diff options
author | Jin Cao <jinyan@google.com> | 2014-09-08 11:14:42 -0700 |
---|---|---|
committer | Jin Cao <jinyan@google.com> | 2014-09-08 11:14:42 -0700 |
commit | 0b171a6fef1b4c3a59b9b15f44a3b536fbd2d3af (patch) | |
tree | 3cad3ae4cbc5bd27df63965016d214863a9b4360 /src/com/android/mail/utils | |
parent | e26853a5f7c19fc037a2ff5223adcd66596b9b2c (diff) | |
download | android_packages_apps_UnifiedEmail-0b171a6fef1b4c3a59b9b15f44a3b536fbd2d3af.tar.gz android_packages_apps_UnifiedEmail-0b171a6fef1b4c3a59b9b15f44a3b536fbd2d3af.tar.bz2 android_packages_apps_UnifiedEmail-0b171a6fef1b4c3a59b9b15f44a3b536fbd2d3af.zip |
Prevent security exceptions from crashing Gmail
Catch SecurityException when they occur during cacheAttachment
so they don't crash Gmail. Still need to investigate why we are
getting these exceptions.
b/17409336
Change-Id: I4e677adee2405682f3d97ced02c6f979f2f3b1de
Diffstat (limited to 'src/com/android/mail/utils')
-rw-r--r-- | src/com/android/mail/utils/AttachmentUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/mail/utils/AttachmentUtils.java b/src/com/android/mail/utils/AttachmentUtils.java index 85f520640..4837f7a02 100644 --- a/src/com/android/mail/utils/AttachmentUtils.java +++ b/src/com/android/mail/utils/AttachmentUtils.java @@ -231,7 +231,7 @@ public class AttachmentUtils { } return cachedFileUri; - } catch (IOException e) { + } catch (IOException | SecurityException e) { // Catch any exception here to allow for unexpected failures during caching se we don't // leave app in inconsistent state as we call this method outside of a transaction for // performance reasons. |