diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-07-01 11:06:15 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-07-01 14:48:08 +0100 |
commit | 6bfa004c52451b618691b56938611ffd368549e2 (patch) | |
tree | aab52d8154a189dfcbf6367fe2d39873b4a89357 | |
parent | 098b93f274f04a039f8613547967c5aabbcfd40d (diff) |
Don't crash when selecting target to db document, fdo#36545.
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
-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 7545e73b6..ba65284ad 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -1936,7 +1936,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; } // ----------------------------------------------------------------------------- |