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>
This commit is contained in:
Caolán McNamara 2022-02-24 10:02:33 +00:00
parent ede3fc1de7
commit 14b219547d

View file

@ -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;
}