diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/protocolhandler/scripthandler.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index 2933ab8b7f0d..f07e156ce178 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -258,16 +258,10 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( if ( bCaughtException ) { SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); - - if ( pFact != nullptr ) - { - ScopedVclPtr<VclAbstractDialog> pDlg( + ScopedVclPtr<VclAbstractDialog> pDlg( pFact->CreateScriptErrorDialog( aException )); - - if ( pDlg ) - pDlg->Execute(); - } - } + pDlg->Execute(); + } if ( xListener.is() ) { |