diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 10:42:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 11:21:12 +0000 |
commit | dfcd09f7749ec86af2251e777c989e42eca68cf4 (patch) | |
tree | 0843a0db0d01b005cf395fc2d400f602f146f0a7 /ucb/source | |
parent | 4d6f797e6c0214526f73dd3df1605126ffbd1063 (diff) |
coverity#1130193 Dereference after null check
Change-Id: I38078c01f8ac37735784508664dfe31aa8f7cf3a
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/core/FileAccess.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx index 4394ae148c62..c9a167477d03 100644 --- a/ucb/source/core/FileAccess.cxx +++ b/ucb/source/core/FileAccess.cxx @@ -588,7 +588,7 @@ Reference< XStream > OFileAccess::openFileReadWrite( const OUString& FileURL ) } catch ( InteractiveIOException const & e ) { - if ( xIH.is() ) + if ( xIH.is() && mpEnvironment ) mpEnvironment->setHandler( xIH ); if ( e.Code == IOErrorCode_NOT_EXISTING ) @@ -611,7 +611,7 @@ Reference< XStream > OFileAccess::openFileReadWrite( const OUString& FileURL ) throw; } - if ( xIH.is() ) + if ( xIH.is() && mpEnvironment ) mpEnvironment->setHandler( xIH ); Reference< XStream > xRet = xSink->getStream(); |