oox/qa/unit/shape.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 218191750b8a55d88779607f212650748bab7d79 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Jul 2 10:31:44 2025 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Jul 2 11:19:58 2025 +0200
oox: fix C6011: Dereferencing NULL pointer 'pViewShell' Change-Id: I5af775c71217010ed9a137967cbff231814ebea4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187268 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/oox/qa/unit/shape.cxx b/oox/qa/unit/shape.cxx index fc2754a84884..5d9bb299e72d 100644 --- a/oox/qa/unit/shape.cxx +++ b/oox/qa/unit/shape.cxx @@ -972,6 +972,7 @@ CPPUNIT_TEST_FIXTURE(OoxShapeTest, testDigitGuideName_funnel) uno::Reference<drawing::XDrawPage> xDrawPage(xDrawPagesSupplier->getDrawPages()->getByIndex(0), uno::UNO_QUERY); SfxViewShell* pViewShell = SfxViewShell::Current(); + CPPUNIT_ASSERT(pViewShell); SdrView* pSdrView = pViewShell->GetDrawView(); // Test idea: Convert the shape to a Bézier curve. Test the end coordinate of the first half