Bullet-proofing export scenarios: null attachments, no msgreceiver

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-08-28 13:20:53 -07:00
parent c0cd733139
commit d31d1712b1
No known key found for this signature in database
GPG key ID: A4931C09644C654B
2 changed files with 2 additions and 2 deletions

View file

@ -369,7 +369,7 @@
var jsonString = JSON.stringify(stringify(message));
stream.write(jsonString);
if (attachments.length) {
if (attachments && attachments.length) {
var process = function() {
return writeAttachments(dir, name, messageId, attachments);
};