sw/qa/core/text/itrform2.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 7f17f309ff14a1e630ee5befc425dfdbfaf3759f
Author: Miklos Vajna <[email protected]>
AuthorDate: Thu Oct 12 15:53:52 2023 +0200
Commit: Miklos Vajna <[email protected]>
CommitDate: Fri Oct 13 08:11:43 2023 +0200
CppunitTest_sw_core_text: fix --disable-pdfium failure
Change-Id: I6e0727a60491aa108c949836ebc6fd52a77984c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157868
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <[email protected]>
diff --git a/sw/qa/core/text/itrform2.cxx b/sw/qa/core/text/itrform2.cxx
index 187eb9ab678e..0705069b3038 100644
--- a/sw/qa/core/text/itrform2.cxx
+++ b/sw/qa/core/text/itrform2.cxx
@@ -123,6 +123,10 @@ CPPUNIT_TEST_FIXTURE(Test,
testContentControlHeaderPDFExport)
// Then make sure all the expected text is there on page 2:
std::unique_ptr<vcl::pdf::PDFiumDocument> pPdfDocument = parsePDFExport();
+ if (!pPdfDocument)
+ {
+ return;
+ }
std::unique_ptr<vcl::pdf::PDFiumPage> pPage2 = pPdfDocument->openPage(1);
int nTextCount = 0;
for (int i = 0; i < pPage2->getObjectCount(); ++i)