[PATCH] Don't crash when selecting target to db document, fdo#36545.

Jan Holesovsky kendy at suse.cz
Fri Jul 1 02:06:15 PDT 2011


---
 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 7545e73..ba65284 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;
 }
 // -----------------------------------------------------------------------------
-- 
1.7.5.4


--=-dQuMYadrn1ahBE14e02W--



More information about the LibreOffice mailing list