dbaccess/source/core/dataaccess/databasedocument.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 9a46ad2f762765348f7aef6e44774a47871362ae Author: Julien Nabet <serval2...@yahoo.fr> Date: Sat Sep 2 15:33:37 2017 +0200 tdf#96703: getDocumentStorage is called during initialization So use DocumentGuard::MethodUsedDuringInit instead of DocumentGuard::DefaultMethod to avoid com.sun.star.lang.NotInitializedException Then we'll got to tackle ODatabaseModelImpl::getOrCreateRootStorage: no source to create the storage from! Change-Id: I1f01bb46088445f3cb3264baee9ad4d45bb5fa8c Reviewed-on: https://gerrit.libreoffice.org/41837 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index 1f769fbc633b..cad3cfb231b1 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -1937,7 +1937,7 @@ void SAL_CALL ODatabaseDocument::switchToStorage( const Reference< XStorage >& _ Reference< XStorage > SAL_CALL ODatabaseDocument::getDocumentStorage( ) { - DocumentGuard aGuard(*this, DocumentGuard::DefaultMethod); + DocumentGuard aGuard(*this, DocumentGuard::MethodUsedDuringInit); return m_pImpl->getOrCreateRootStorage(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits