sw/source/core/doc/DocumentDeviceManager.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit 57c30e9f773cc9553ae70e22828e6d41df04cdaf Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Feb 21 12:33:59 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Feb 21 17:20:52 2022 +0100 cid#1500621 silence Dereference after null check Change-Id: Ib8d5eff6e2489e66754b73bc3a59f152e344d35f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130278 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/doc/DocumentDeviceManager.cxx b/sw/source/core/doc/DocumentDeviceManager.cxx index 33e76ab8ad36..0aa41350c235 100644 --- a/sw/source/core/doc/DocumentDeviceManager.cxx +++ b/sw/source/core/doc/DocumentDeviceManager.cxx @@ -239,6 +239,7 @@ const SwPrintData & DocumentDeviceManager::getPrintData() const SwPrintOptions aPrintOptions( bWeb ); *pThis->mpPrtData = aPrintOptions; } + assert(mpPrtData && "this will always be set by now"); return *mpPrtData; }