From 91e7943cac7490c51bbc03eec2f90422f8e1598e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 19 Feb 2014 14:59:14 +0200 Subject: [PATCH] cid#1078823 Dereference before null check Change-Id: If1a3f54ee38cd97693cebaea680b46ba846b2e71 --- sot/source/sdstor/ucbstorage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 47158aff3805..f9fd6109d198 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -2715,7 +2715,7 @@ BaseStorageStream* UCBStorage::OpenStream( const OUString& rEleName, StreamMode } } - if ( pElement && !pElement->m_bIsFolder ) + if ( !pElement->m_bIsFolder ) { // check if stream is already created if ( pElement->m_xStream.Is() )