diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-16 16:36:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-16 20:31:57 +0200 |
commit | b4e42bce5581e6c1956607a5cb49837ad85b862b (patch) | |
tree | 240a29dd37c4276fa5f7a167656fc58c801dc341 /vcl | |
parent | f1c91993e54858f9bc7ed78d25485a09157c04be (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 'vcl')
-rw-r--r-- | vcl/qa/cppunit/filter/ipdf/ipdf.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/filter/ipdf/ipdf.cxx b/vcl/qa/cppunit/filter/ipdf/ipdf.cxx index 1c0b0625ce68..92c024bd34fa 100644 --- a/vcl/qa/cppunit/filter/ipdf/ipdf.cxx +++ b/vcl/qa/cppunit/filter/ipdf/ipdf.cxx @@ -100,7 +100,9 @@ CPPUNIT_TEST_FIXTURE(VclFilterIpdfTest, testPDFAddVisibleSignatureLastPage) { return; } - SdrView* pView = SfxViewShell::Current()->GetDrawView(); + SfxViewShell* pCurrent = SfxViewShell::Current(); + CPPUNIT_ASSERT(pCurrent); + SdrView* pView = pCurrent->GetDrawView(); svx::SignatureLineHelper::setShapeCertificate(pView, xCert); // the document is modified now, but Sign function can't show SaveAs dialog |