diff --git a/mail/js/app.js b/mail/js/app.js index 99a004c3c2..57c6717128 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -929,6 +929,7 @@ app.classes.mail = AppJS.extend( { // Put required info in global store var data = {}; + if (!attachments) return; for (var i = 0; i < attachments.length; i++) { var data = attachments[i] || {};