Hi all,
https://bugs.freedesktop.org/show_bug.cgi?id=36545
This one is a trivial one, please see the attachment. All in all, just
check for validity of a pointer we are going to dereference...
Please check, sign-off, and push to libreoffice-3-4
Regards,
Kendy
From 02c0c09f0a8cb22b876b25ff670127cc85df1ddd Mon Sep 17 00:00:00 2001
From: Jan Holesovsky <kendy@suse.cz>
Date: Fri, 1 Jul 2011 11:06:15 +0200
Subject: [PATCH] Don't crash when selecting target to db document, fdo#36545.
---
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
Context
- [Libreoffice] [REVIEW] Fix crash when selecting target after inserting hyperlink to database document · Jan Holesovsky
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.