diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-07-05 18:37:35 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-07-06 10:47:30 +0200 |
commit | e2320955b32595df09c9c4412ccec56a0b273df7 (patch) | |
tree | 267899466b4be7f3a36473ff55ac0229685b220a /sfx2/source/appl/appdispatchprovider.cxx | |
parent | df8589bd49d7eb1bb42ae78abcb91d33cf9255ce (diff) |
Some cleanup and comments
Change-Id: Ic1dda9b0e5d7896703b65d0d43be340196bcb871
Diffstat (limited to 'sfx2/source/appl/appdispatchprovider.cxx')
-rw-r--r-- | sfx2/source/appl/appdispatchprovider.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/appl/appdispatchprovider.cxx b/sfx2/source/appl/appdispatchprovider.cxx index a13cb5312bf6..d13a9009ee0e 100644 --- a/sfx2/source/appl/appdispatchprovider.cxx +++ b/sfx2/source/appl/appdispatchprovider.cxx @@ -129,7 +129,10 @@ Reference < XDispatch > SAL_CALL SfxAppDispatchProvider::queryDispatch( bool bMasterCommand( false ); Reference < XDispatch > xDisp; const SfxSlot* pSlot = nullptr; - SfxDispatcher* pAppDisp = SfxGetpApp()->GetAppDispatcher_Impl(); + SfxApplication* pApp = SfxGetpApp(); + if ( !pApp ) + return xDisp; + SfxDispatcher* pAppDisp = pApp->GetAppDispatcher_Impl(); if ( aURL.Protocol == "slot:" || aURL.Protocol == "commandId:" ) { nId = static_cast<sal_uInt16>(aURL.Path.toInt32()); |