email: catch the correct exception while closing the buffers
BinaryTempFileBody#getBody()#getInputStream() returns a MessagingException not an IOException. This causes "com.android.emailcommon.mail.MessagingException: Unable to open body" exception messages and attachment messages not flagged as loaded. Change-Id: Ia8f25dd0a212ce52e3dd202c523c5db4a009604f Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
This commit is contained in:
parent
0672de3149
commit
377660c356
@ -178,7 +178,7 @@ public class Utilities {
|
||||
if (is != null) {
|
||||
is.close();
|
||||
}
|
||||
} catch (IOException io) {
|
||||
} catch (IOException | MessagingException io) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user