summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-22 16:06:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-22 16:11:03 +0000
commit51452b7afe858139076010decbe04758321a8396 (patch)
treea51c8e9b2c36f2ebfbb6a739953a553dd69b03ac /vcl/source
parent901f3f76bc48614ffca98cacf98afd0b1967139f (diff)
coverity#705969 Dereference before null check
Change-Id: Icb19931bb529e6c2b98621a603cdb86011d68a9e
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/print3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index 350bfdc178a6..be3dc9c3c8f4 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -716,7 +716,7 @@ bool Printer::StartJob( const OUString& i_rJobName, boost::shared_ptr<vcl::Print
if( bError )
{
- mnError = ImplSalPrinterErrorCodeToVCL( mpPrinter->GetErrorCode() );
+ mnError = mpPrinter ? ImplSalPrinterErrorCodeToVCL(mpPrinter->GetErrorCode()) : 0;
if ( !mnError )
mnError = PRINTER_GENERALERROR;
i_pController->setJobState( mnError == PRINTER_ABORT