diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-22 20:57:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:28:22 +0000 |
commit | 841ea0ace7c1913459b9f56f774eb7398058bf14 (patch) | |
tree | 81b5d151c6c1ca92e6e60ebec5d7531c633b503b /forms/source/component | |
parent | 338beca1f2fe525265e736d8c1f10b826e14cbd1 (diff) |
coverity#441137 Dereference after null check
Change-Id: I877abe904885f28560cf43ee70001ac97fadbe04
Diffstat (limited to 'forms/source/component')
-rw-r--r-- | forms/source/component/imgprod.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx index fe82b06ea2f0..e9c6a695a2e9 100644 --- a/forms/source/component/imgprod.cxx +++ b/forms/source/component/imgprod.cxx @@ -333,6 +333,9 @@ void ImageProducer::startProduction() throw(::com::sun::star::uno::RuntimeExcept sal_Bool ImageProducer::ImplImportGraphic( Graphic& rGraphic ) { + if (!mpStm) + return false; + if( ERRCODE_IO_PENDING == mpStm->GetError() ) mpStm->ResetError(); |