From ddbf1fb2da4eaa8d847fd7fa2f21bd5f81a4a827 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Wed, 27 Sep 2017 11:31:38 +0300 Subject: [PATCH] v1.0.82 --- lib/attachments/gridstore-storage.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/attachments/gridstore-storage.js b/lib/attachments/gridstore-storage.js index 466e53c7..867742d4 100644 --- a/lib/attachments/gridstore-storage.js +++ b/lib/attachments/gridstore-storage.js @@ -181,7 +181,7 @@ class GridstoreStorage { createReadStream(id, attachmentData) { let stream = this.gridstore.openDownloadStream(id); - if (attachmentData.metadata.decoded) { + if (attachmentData && attachmentData.metadata.decoded) { let encoder = new libbase64.Encoder({ lineLength: attachmentData.metadata.lineLen }); diff --git a/package.json b/package.json index 34434ed5..30a5d2d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wildduck", - "version": "1.0.81", + "version": "1.0.82", "description": "IMAP server built with Node.js and MongoDB", "main": "server.js", "scripts": {