Skip to content

Commit

Permalink
[bug] Fix crash with undefined firstParticipantNoView
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Nov 29, 2024
1 parent 4304e40 commit 5b96913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DocService/sources/DocsCoServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5b96913

Please sign in to comment.