summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-24 10:02:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-24 15:20:41 +0100
commit14b219547dff8ed1c998a045f14cb1d9eed485c5 (patch)
tree4e7f12e12585ad07bb56d730771b50c49896f23c /vcl
parentede3fc1de7b21f9ba0c529e739cf32bf82c1924e (diff)
cid#1500677 Dereference after null check
Change-Id: Ie6eacd21943939e586cdc6712757f34825f17913 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130486 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/print.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 0d6cf081ce41..b2113709b724 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -405,6 +405,7 @@ const std::vector<OUString>& Printer::GetPrinterQueues()
ImplSVData* pSVData = ImplGetSVData();
if ( !pSVData->maGDIData.mpPrinterQueueList )
ImplInitPrnQueueList();
+ assert(pSVData->maGDIData.mpPrinterQueueList && "mpPrinterQueueList exists by now");
return pSVData->maGDIData.mpPrinterQueueList->m_aPrinterList;
}