From 51452b7afe858139076010decbe04758321a8396 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 22 Mar 2014 16:06:35 +0000 Subject: coverity#705969 Dereference before null check Change-Id: Icb19931bb529e6c2b98621a603cdb86011d68a9e --- vcl/source/gdi/print3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source') 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_ptrGetErrorCode() ); + mnError = mpPrinter ? ImplSalPrinterErrorCodeToVCL(mpPrinter->GetErrorCode()) : 0; if ( !mnError ) mnError = PRINTER_GENERALERROR; i_pController->setJobState( mnError == PRINTER_ABORT -- cgit