diff options
-rw-r--r-- | dbaccess/source/ui/app/AppController.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx index 94ee696b8112..9c349639445c 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -1937,7 +1937,8 @@ Reference< XComponent > OApplicationController::openElementWithArguments( const IMPL_LINK( OApplicationController, OnSelectContainer, void*, _pType ) { ElementType eType = (ElementType)reinterpret_cast< sal_IntPtr >( _pType ); - getContainer()->selectContainer(eType); + if (getContainer()) + getContainer()->selectContainer(eType); return 0L; } // ----------------------------------------------------------------------------- |