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:
parent
ede3fc1de7
commit
14b219547d
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue