diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 2476a50ba..d4744a57b 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -692,7 +692,7 @@ define([ var action = {id: id, type: type}; this.stackLongActions.pop(action); - appHeader.setDocumentCaption(this.api.asc_getDocumentName()); + appHeader && appHeader.setDocumentCaption(this.api.asc_getDocumentName()); this.updateWindowTitle(true); action = this.stackLongActions.get({type: Asc.c_oAscAsyncActionType.Information}); diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index a4eb0b592..d93a72b86 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -475,7 +475,7 @@ define([ var action = {id: id, type: type}; this.stackLongActions.pop(action); - appHeader.setDocumentCaption(this.api.asc_getDocumentName()); + appHeader && appHeader.setDocumentCaption(this.api.asc_getDocumentName()); this.updateWindowTitle(true); action = this.stackLongActions.get({type: Asc.c_oAscAsyncActionType.Information}); diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 74e292259..20d62500b 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -509,7 +509,7 @@ define([ var action = {id: id, type: type}; this.stackLongActions.pop(action); - this.headerView.setDocumentCaption(this.api.asc_getDocumentName()); + this.headerView && this.headerView.setDocumentCaption(this.api.asc_getDocumentName()); this.updateWindowTitle(this.api.asc_isDocumentModified(), true); if (type === Asc.c_oAscAsyncActionType.BlockInteraction && id == Asc.c_oAscAsyncAction.Open) {