From c9d3931df339ba23b478022f7893d2081cef939f Mon Sep 17 00:00:00 2001 From: Sergey Luzyanin Date: Thu, 28 Nov 2024 10:49:52 +0300 Subject: [PATCH] [pe] fix crash in coauthoring --- slide/Editor/Format/Presentation.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slide/Editor/Format/Presentation.js b/slide/Editor/Format/Presentation.js index f5034508c9..65632490f7 100644 --- a/slide/Editor/Format/Presentation.js +++ b/slide/Editor/Format/Presentation.js @@ -7348,6 +7348,10 @@ CPresentation.prototype.Load_DocumentStateAfterLoadChanges = function (oState) { this.CollaborativeEditing.UpdateDocumentPositionsByState(oState); let oCurSlide = this.GetCurrentSlide(); + if(!oCurSlide) { + this.DrawingDocument.m_oWordControl.GoToPage(this.GetSlidesCount() - 1); + return; + } if (oState.Slide) { var oSlide = oState.Slide; if (oSlide !== oCurSlide) {