summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-02 15:53:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-02 20:08:23 +0000
commit89d4eb66bacaf5c0518ae45a3bb98b159bb42a7b (patch)
treefb22a6e9b6fc4a35ffbdfe8254056302d5e91dc3 /vcl
parent8b76723f5880e5ae806047e3c2f33e97be44f566 (diff)
coverity#735988 Dereference after null check
Change-Id: I6fdf2b87447de6593216437def295dfcc939aea8
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/print.cxx3
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 )
{