summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-08 20:50:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-08 20:50:50 +0000
commit249cc89a292bb18e28d0f8447db70cd1adafcaad (patch)
tree4188cc5095d61391a6fb9446fe5d233b4bdf964d /ucb/source
parent6d43fd9c9ff5a55bc8c7be5750dae4dc8ec363bb (diff)
coverity#982486 Unchecked dynamic_cast
Change-Id: I241300f05ab537f2ab89d15f06ce6c04ffec14b5
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index f1e7f92b9090..71f42a0ca02b 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -1679,7 +1679,8 @@ namespace cmis
else
{
libcmis::Folder* folder = dynamic_cast< libcmis::Folder* >( getObject( xEnv ).get() );
- folder->removeTree( );
+ if (folder)
+ folder->removeTree( );
}
}
catch ( const libcmis::Exception& e )