mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Fix crash with undefined firstParticipantNoView
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user