vcl/source/gdi/print.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 14b219547dff8ed1c998a045f14cb1d9eed485c5 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Feb 24 10:02:33 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Feb 24 15:20:41 2022 +0100
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 <caol...@redhat.com> 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; }