sd/qa/ui/func/func.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 8d6cc29c15538d30cfd06708c24ccb924a11a0cd
Author: Mike Kaganski <[email protected]>
AuthorDate: Sun Feb 8 15:02:42 2026 +0500
Commit: Mike Kaganski <[email protected]>
CommitDate: Sun Feb 8 12:46:49 2026 +0100
enable-msvc-analyze: C6011: Dereferencing NULL pointer
C:\lo NULL pointer 'pViewShell'. .: Lines: 90, 91, 92, 93, 94, 95
Change-Id: I17c19e9560c28c05a54862352b0d9029a267dc8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198899
Reviewed-by: Mike Kaganski <[email protected]>
Tested-by: Jenkins
diff --git a/sd/qa/ui/func/func.cxx b/sd/qa/ui/func/func.cxx
index 8a4218a33629..53526d0d6de5 100644
--- a/sd/qa/ui/func/func.cxx
+++ b/sd/qa/ui/func/func.cxx
@@ -89,6 +89,7 @@ CPPUNIT_TEST_FIXTURE(Test, testNoneToLibraryBullet)
// Given a document with a shape, the only paragraph has a numbering of
type "none":
createSdImpressDoc("odp/none-to-bullet.odp");
sd::ViewShell* pViewShell = getSdDocShell()->GetViewShell();
+ CPPUNIT_ASSERT(pViewShell);
SdPage* pPage = pViewShell->GetActualPage();
SdrObject* pShape = pPage->GetObj(0);
CPPUNIT_ASSERT(pShape);