summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-16 16:36:14 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-16 20:31:57 +0200
commitb4e42bce5581e6c1956607a5cb49837ad85b862b (patch)
tree240a29dd37c4276fa5f7a167656fc58c801dc341 /oox
parentf1c91993e54858f9bc7ed78d25485a09157c04be (diff)
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I710ff75d387b2d452cb80911c9f0092948453ef8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167751 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'oox')
-rw-r--r--oox/qa/unit/testscene3d.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/oox/qa/unit/testscene3d.cxx b/oox/qa/unit/testscene3d.cxx
index d43209a0a2c4..08d24ded2afc 100644
--- a/oox/qa/unit/testscene3d.cxx
+++ b/oox/qa/unit/testscene3d.cxx
@@ -63,6 +63,7 @@ uno::Reference<drawing::XShape> TestScene3d::getShape(sal_uInt8 nShapeIndex, sal
void TestScene3d::getShapeAsBitmap(BitmapEx& rBMP, sal_uInt8 nShapeIndex)
{
SfxViewShell* pViewShell = SfxViewShell::Current();
+ CPPUNIT_ASSERT(pViewShell);
SdrView* pSdrView = pViewShell->GetDrawView();
// Mark object and convert it to bitmap