diff options
-rw-r--r-- | package/source/xstor/xstorage.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index ba942c867379..c99057368421 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -1130,12 +1130,12 @@ void OStorage_Impl::Commit() if ( pElement->m_bIsStorage ) { + OSL_ENSURE(pElement->m_xStorage, "An inserted storage is incomplete!"); + if (!pElement->m_xStorage) + throw uno::RuntimeException( THROW_WHERE ); + if (pElement->m_xStorage->m_bCommited) { - OSL_ENSURE(pElement->m_xStorage, "An inserted storage is incomplete!"); - if (!pElement->m_xStorage) - throw uno::RuntimeException( THROW_WHERE ); - pElement->m_xStorage->InsertIntoPackageFolder(/*aName*/pair.first, xNewPackageFolder); pElement->m_bIsInserted = false; |