package: avoid throwing RuntimeException in getZipFileContents()
Translate it to ZipIOException. Change-Id: I7a07a59c0ba301b92f31696355c73ccbdf119ff8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170013 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
This commit is contained in:
@@ -626,7 +626,11 @@ void ZipPackage::getZipFileContents()
|
|||||||
if ( !pCurrent->hasByName( sTemp ) )
|
if ( !pCurrent->hasByName( sTemp ) )
|
||||||
{
|
{
|
||||||
rtl::Reference<ZipPackageFolder> pPkgFolder = new ZipPackageFolder(m_xContext, m_nFormat, m_bAllowRemoveOnInsert);
|
rtl::Reference<ZipPackageFolder> pPkgFolder = new ZipPackageFolder(m_xContext, m_nFormat, m_bAllowRemoveOnInsert);
|
||||||
pPkgFolder->setName( sTemp );
|
try {
|
||||||
|
pPkgFolder->setName( sTemp );
|
||||||
|
} catch (uno::RuntimeException const& e) {
|
||||||
|
throw css::packages::zip::ZipIOException(e.Message);
|
||||||
|
}
|
||||||
pPkgFolder->doSetParent( pCurrent );
|
pPkgFolder->doSetParent( pCurrent );
|
||||||
pCurrent = pPkgFolder.get();
|
pCurrent = pPkgFolder.get();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user