Fix crush on pdf document opening

This commit is contained in:
Eduard Belozertsev
2025-10-03 21:54:34 +07:00
parent 73332f94cb
commit 39dcbb2650

View File

@ -467,7 +467,7 @@
};
PDFEditorApi.prototype.getGraphicController = function () {
let oDoc = this.getPDFDoc();
return oDoc.GetController();
return oDoc ? oDoc.GetController() : null;
};
PDFEditorApi.prototype.can_CopyCut = function() {
if (!this.DocumentRenderer)