svx/source/svdraw/svdedtv.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 3b92b0c7a6d6832917fbc5073c3299a1ffe861da Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Wed Mar 31 15:56:39 2021 -0800 Commit: Noel Grandin <noel.gran...@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.gran...@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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits