[Libreoffice-commits] core.git: svx/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 1 06:05:23 UTC 2021
svx/source/svdraw/svdedtv.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3b92b0c7a6d6832917fbc5073c3299a1ffe861da
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Wed Mar 31 15:56:39 2021 -0800
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Apr 1 08:04:38 2021 +0200
tdf#141405 fix null reference use crash
Change-Id: I90906b7df044c1a139c6187b74d1b4b8210919c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113434
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/svx/source/svdraw/svdedtv.cxx b/svx/source/svdraw/svdedtv.cxx
index c49474cf6c20..3470a8d91458 100644
--- a/svx/source/svdraw/svdedtv.cxx
+++ b/svx/source/svdraw/svdedtv.cxx
@@ -1005,8 +1005,8 @@ bool SdrEditView::InsertObjectAtView(SdrObject* pObj, SdrPageView& rPV, SdrInser
css::uno::Reference<lang::XServiceInfo> xServices(GetModel()->getUnoModel(),
css::uno::UNO_QUERY);
- if (xServices->supportsService("com.sun.star.sheet.SpreadsheetDocument") ||
- xServices->supportsService("com.sun.star.text.TextDocument"))
+ if (xServices.is() && (xServices->supportsService("com.sun.star.sheet.SpreadsheetDocument") ||
+ xServices->supportsService("com.sun.star.text.TextDocument")))
{
const bool bUndo(IsUndoEnabled());
GetModel()->EnableUndo(false);
More information about the Libreoffice-commits
mailing list