From 5b969132b152d70c372b2619512547763a648db9 Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Tue, 1 Oct 2024 19:38:48 +0300 Subject: [PATCH] [bug] Fix crash with undefined firstParticipantNoView --- DocService/sources/DocsCoServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DocService/sources/DocsCoServer.js b/DocService/sources/DocsCoServer.js index 062ea06c..8a4ef764 100644 --- a/DocService/sources/DocsCoServer.js +++ b/DocService/sources/DocsCoServer.js @@ -2903,7 +2903,7 @@ exports.install = function(server, callbackFunction) { } let lockDocument = null; let waitAuthUserId; - if (!bIsRestore && 2 === countNoView && !tmpUser.view) { + if (!bIsRestore && 2 === countNoView && !tmpUser.view && firstParticipantNoView) { // lock a document const lockRes = yield editorData.lockAuth(ctx, docId, firstParticipantNoView.id, 2 * tenExpLockDoc); if (constants.CONN_CLOSED === conn.conn.readyState) {