summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-25 12:10:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-25 16:43:48 +0200
commit0ce75cde0a0bdf4b3c23044e713f906a765e8a8a (patch)
tree4f6dc78f49007404a446e4275fc3501c2fc67c7c /svx
parenta0032a2dc2e4ac7615baaacdde5fefa64048822e (diff)
Resolves: tdf#113328 crash in color replacer if parent closed before it
Change-Id: I41a7af332cd36c9645b6042785c4d72f70e67795 Reviewed-on: https://gerrit.libreoffice.org/43824 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index d37c0ab717cb..f5194489338b 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -3256,6 +3256,8 @@ SvxListBoxColorWrapper::SvxListBoxColorWrapper(SvxColorListBox* pControl)
void SvxListBoxColorWrapper::operator()(const OUString& /*rCommand*/, const NamedColor& rColor)
{
+ if (!mxControl)
+ return;
mxControl->Selected(rColor);
}