From 80fffd2353780cb5fc4ef33f596ffc35ba71d3ec Mon Sep 17 00:00:00 2001 From: Nikita Khromov Date: Fri, 3 Oct 2025 14:10:41 +0700 Subject: [PATCH] [pdf] Fix bug #77234 --- pdf/src/viewer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pdf/src/viewer.js b/pdf/src/viewer.js index 88faaadad9..3dd7a50e1e 100644 --- a/pdf/src/viewer.js +++ b/pdf/src/viewer.js @@ -4698,6 +4698,10 @@ } function checkNeedRedactPage(oPageInfo) { + if (!oPageInfo) { + return false; + } + if (oPageInfo.annots.find(function(annot) { return annot.IsRedact() && annot.GetRedactId(); })) { @@ -4964,6 +4968,10 @@ } function checkNeedRedactPage(oPageInfo) { + if (!oPageInfo) { + return false; + } + if (oPageInfo.annots.find(function(annot) { return annot.IsRedact() && annot.GetRedactId(); })) {