mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Prevent follow up NPE
This commit is contained in:
@@ -4532,6 +4532,11 @@ public class MessageHelper {
|
||||
subsequence = decodeTNEF(context, epart.attachment, subsequence);
|
||||
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
|
||||
if (epart.attachment.id == null)
|
||||
continue;
|
||||
|
||||
db.attachment().setError(epart.attachment.id, Log.formatThrowable(ex));
|
||||
db.attachment().setAvailable(epart.attachment.id, true); // unrecoverable
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user