diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-11-29 20:47:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-11-30 09:49:53 +0100 |
commit | 79ec66700266a22966d9e308a716be56c9c3a4a7 (patch) | |
tree | 57b38e5d521a417f152220423d9db136df13afec /sw/inc/paratr.hxx | |
parent | b46dc75e4405f17dfe9c92c5447bd70a3e2ffd7b (diff) |
ofz#28041 Null-dereference
since...
commit 089bb2f3bd2b5fc8118caaa6b7c6b82dd36a094e
Date: Sun Nov 22 21:15:13 2020 +0100
Refactor SwFormatDrop
... and get rid of the SwClientNotifyCall.
Change-Id: I6c320d2b14fc393f00a9b13949a338886e386b6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106846
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/paratr.hxx')
-rw-r--r-- | sw/inc/paratr.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/inc/paratr.hxx b/sw/inc/paratr.hxx index d9712028198c..512f6cca18df 100644 --- a/sw/inc/paratr.hxx +++ b/sw/inc/paratr.hxx @@ -80,7 +80,11 @@ private: protected: virtual void SwClientNotify(const SwModify&, const SfxHint&) override - { m_pDefinedIn->FormatDropNotify(*this); }; + { + if (!m_pDefinedIn) + return; + m_pDefinedIn->FormatDropNotify(*this); + } public: |