From 333591d0877f7feda21795e5ffe1eca70d72e8d6 Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 12 Jun 2015 10:16:33 +0100 Subject: [PATCH] Extra null check --- services/document-updater/app/coffee/UpdateManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/app/coffee/UpdateManager.coffee b/services/document-updater/app/coffee/UpdateManager.coffee index feff628453..8765c330ff 100644 --- a/services/document-updater/app/coffee/UpdateManager.coffee +++ b/services/document-updater/app/coffee/UpdateManager.coffee @@ -54,7 +54,7 @@ module.exports = UpdateManager = UpdateManager.applyUpdates project_id, doc_id, updates, callback applyUpdates: (project_id, doc_id, updates, callback = (error) ->) -> - for update in updates + for update in updates or [] UpdateManager._sanitizeUpdate update ShareJsUpdateManager.applyUpdates project_id, doc_id, updates, (error, updatedDocLines, version) -> return callback(error) if error?