sfx2/source/doc/guisaveas.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit be3f53ce62fcf02114afb0727c4a4ab6eccc23a5 Author: Xisco Fauli <[email protected]> AuthorDate: Wed Jan 24 10:03:53 2024 +0100 Commit: Christian Lohmaier <[email protected]> CommitDate: Thu Jan 25 14:28:18 2024 +0100 sfx2: check SfxViewShell::Current() Seen in https://crashreport.libreoffice.org/stats/crash_details/52df6de5-7ea8-48e4-8c45-f18b02d9a767 Change-Id: I56c17234a0f82797d37e26b0c39eeba7f78fcee5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162492 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> (cherry picked from commit 1a4a215bc59e50958b2c04ac405c5200f5811970) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162469 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Christian Lohmaier <[email protected]> Reviewed-by: Christian Lohmaier <[email protected]> diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx index 657d162ff732..9e06dca31dce 100644 --- a/sfx2/source/doc/guisaveas.cxx +++ b/sfx2/source/doc/guisaveas.cxx @@ -1485,7 +1485,7 @@ bool SfxStoringHelper::GUIStoreModel( const uno::Reference< frame::XModel >& xMo } } - if (!comphelper::LibreOfficeKit::isActive() && !( m_nStoreMode & EXPORT_REQUESTED ) ) + if (!comphelper::LibreOfficeKit::isActive() && !( m_nStoreMode & EXPORT_REQUESTED ) && SfxViewShell::Current() ) { SfxObjectShell* pDocShell = SfxViewShell::Current()->GetObjectShell();
