diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 16:06:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 16:11:03 +0000 |
commit | 51452b7afe858139076010decbe04758321a8396 (patch) | |
tree | a51c8e9b2c36f2ebfbb6a739953a553dd69b03ac /vcl/source | |
parent | 901f3f76bc48614ffca98cacf98afd0b1967139f (diff) |
coverity#705969 Dereference before null check
Change-Id: Icb19931bb529e6c2b98621a603cdb86011d68a9e
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/print3.cxx | 2 |
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 |