diff options
-rw-r--r-- | sfx2/source/view/viewprn.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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, |