diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 15:53:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 20:08:23 +0000 |
commit | 89d4eb66bacaf5c0518ae45a3bb98b159bb42a7b (patch) | |
tree | fb22a6e9b6fc4a35ffbdfe8254056302d5e91dc3 /vcl | |
parent | 8b76723f5880e5ae806047e3c2f33e97be44f566 (diff) |
coverity#735988 Dereference after null check
Change-Id: I6fdf2b87447de6593216437def295dfcc939aea8
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/print.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index d6eb52d2c7a3..a50770c38c9a 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -383,6 +383,9 @@ const QueueInfo* Printer::GetQueueInfo( const OUString& rPrinterName, bool bStat if ( !pSVData->maGDIData.mpPrinterQueueList ) ImplInitPrnQueueList(); + if ( !pSVData->maGDIData.mpPrinterQueueList ) + return NULL; + ImplPrnQueueData* pInfo = pSVData->maGDIData.mpPrinterQueueList->Get( rPrinterName ); if( pInfo ) { |