sfx2/source/view/viewprn.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit eb6df599f793e87f7af55a7029abcc3b76c5267a Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Oct 21 12:53:03 2024 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Tue Oct 22 11:16:51 2024 +0200 sfx2: check mpViewShell in another place After commit 3cc367f426506e3165dda06feeb20e0a9b4c6194 Author: Xisco Fauli <xiscofa...@libreoffice.org> Date: Fri Oct 18 16:40:05 2024 +0200 tdf#163486: PVS: check mpViewShell Kudos to M. Kaganski Change-Id: Id1cfed6f199394720336581c87d11125cd147734 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175328 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> (cherry picked from commit a2bed2a09185b2cb1a5aaf926544475a4cc4a2b0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175314 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index 319ecafbb7c8..bc885e5670c7 100644 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -341,7 +341,7 @@ void SfxPrinterController::jobFinished( css::view::PrintableState nState ) { // "real" problem (not simply printing cancelled by user) OUString aMsg( SfxResId(STR_NOSTARTPRINTER) ); - if ( !m_bApi ) + if ( !m_bApi && mpViewShell ) { std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(mpViewShell->GetFrameWeld(), VclMessageType::Warning, VclButtonsType::Ok,