coverity#706569 Uncaught exception
Change-Id: I7c1245eacd92b5869e6dab0389ee0ca3cebd98da
This commit is contained in:
@@ -3161,9 +3161,16 @@ uno::Any SAL_CALL OWriteStream::getPropertyValue( const OUString& aProp )
|
|||||||
return uno::makeAny( m_pImpl->m_bUseCommonEncryption );
|
return uno::makeAny( m_pImpl->m_bUseCommonEncryption );
|
||||||
else if ( aPropertyName == "Size" )
|
else if ( aPropertyName == "Size" )
|
||||||
{
|
{
|
||||||
CheckInitOnDemand();
|
bool bThrow = false;
|
||||||
|
try
|
||||||
if ( !m_xSeekable.is() )
|
{
|
||||||
|
CheckInitOnDemand();
|
||||||
|
}
|
||||||
|
catch (const io::IOException&)
|
||||||
|
{
|
||||||
|
bThrow = true;
|
||||||
|
}
|
||||||
|
if (bThrow || !m_xSeekable.is())
|
||||||
throw uno::RuntimeException();
|
throw uno::RuntimeException();
|
||||||
|
|
||||||
return uno::makeAny( m_xSeekable->getLength() );
|
return uno::makeAny( m_xSeekable->getLength() );
|
||||||
|
Reference in New Issue
Block a user