coverity#982487 Unchecked dynamic_cast
Change-Id: I011ab1fc6a4c69891c17c867fbe951c00811eac2
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user