coverity#982487 Unchecked dynamic_cast

Change-Id: I011ab1fc6a4c69891c17c867fbe951c00811eac2
This commit is contained in:
Caolán McNamara
2014-03-06 12:09:02 +00:00
parent d60392fb5b
commit a9531d2e53

View File

@@ -1408,6 +1408,10 @@ namespace cmis
try
{
libcmis::Document* document = dynamic_cast< libcmis::Document* >( getObject( xEnv ).get() );
if (!document)
return sal_False;
boost::shared_ptr< istream > aIn = document->getContentStream( );
uno::Reference< io::XInputStream > xIn = new ucbhelper::StdInputStream( aIn );