diff --git a/word/Editor/GraphicObjects/DrawingStates.js b/word/Editor/GraphicObjects/DrawingStates.js index 1fe8b30aa0..7d58d855d4 100644 --- a/word/Editor/GraphicObjects/DrawingStates.js +++ b/word/Editor/GraphicObjects/DrawingStates.js @@ -429,7 +429,7 @@ NullState.prototype = } else { let oViewer = editor.getDocumentRenderer(); - let aDrawings = oViewer.pagesInfo.pages[pageIndex].annots || []; + let aDrawings = (oViewer.pagesInfo.pages[pageIndex] && oViewer.pagesInfo.pages[pageIndex].annots) || []; return AscFormat.handleFloatObjects(this.drawingObjects, aDrawings, e, x, y, null, pageIndex, true); }