summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-12-03 09:53:41 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-12-09 09:17:31 +0100
commit85bc09d05f4824929d5b1381343c3ca75e7f6006 (patch)
tree95326e91bb117c90ab186d7a1cea44edc0dbf808 /svx
parentfa1609be20baa2ccd3293a034e004efa1ae5b90e (diff)
svx: fix crash in ViewContact::ActionChanged()
Crashreport: sdr::contact::ViewContact::ActionChanged() svx/source/sdr/contact/viewcontact.cxx:197 (discriminator 2) SdrTextObj::NbcSetOutlinerParaObjectForText(std::unique_ptr<OutlinerParaObject, std::default_delete<OutlinerParaObject> >, SdrText*) svx/source/svdraw/svdotext.cxx:1379 sdr::properties::TextProperties::ItemSetChanged(SfxItemSet const&) /usr/include/c++/10/bits/unique_ptr.h:360 sdr::properties::RectangleProperties::ItemSetChanged(SfxItemSet const&) svx/source/sdr/properties/rectangleproperties.cxx:54 Change-Id: I82de3e849cef33d207c8fd5e1c225de78d5f8705 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126562 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/contact/viewcontact.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/sdr/contact/viewcontact.cxx b/svx/source/sdr/contact/viewcontact.cxx
index 3f13933b742d..09ec38f771ca 100644
--- a/svx/source/sdr/contact/viewcontact.cxx
+++ b/svx/source/sdr/contact/viewcontact.cxx
@@ -193,7 +193,10 @@ void ViewContact::ActionChanged()
DBG_ASSERT(pCandidate,
"ViewContact::GetViewObjectContact() invalid ViewObjectContactList (!)");
- pCandidate->ActionChanged();
+ if (pCandidate)
+ {
+ pCandidate->ActionChanged();
+ }
}
}