summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-07-01 11:06:15 +0200
committerMichael Meeks <michael.meeks@novell.com>2011-07-01 14:48:08 +0100
commit5a6934c6f092ba8d5f29c43508b80d376f218fb8 (patch)
treecb3fc5c7db9b2f04c6a6f943157b807da2a8b0e1 /dbaccess
parenta4ee9954027bafed6b5d0ded64c6cf11c4185831 (diff)
Don't crash when selecting target to db document, fdo#36545.
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/app/AppController.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index ee242ea29d33..98852706f5d1 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;
}
// -----------------------------------------------------------------------------