diff --git a/src/com/android/email/Controller.java b/src/com/android/email/Controller.java index 633a5f4b9..b3e2c2a39 100644 --- a/src/com/android/email/Controller.java +++ b/src/com/android/email/Controller.java @@ -746,6 +746,9 @@ public class Controller { File saveToFile = AttachmentProvider.getAttachmentFilename(mProviderContext, accountId, attachmentId); Attachment attachInfo = Attachment.restoreAttachmentWithId(mProviderContext, attachmentId); + if (attachInfo == null) { + return; + } if (saveToFile.exists() && attachInfo.mContentUri != null) { // The attachment has already been downloaded, so we will just "pretend" to download it