summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-19 14:53:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-19 18:10:11 +0000
commit7b6ffbcc958410035adfd4ed1d4b97991dfb883c (patch)
treeec044aef0409104598624dc8696c9d73eb561e77 /sc/source/ui/app
parenta66332bedf40bf718eb4ca755fc0acd2599dbcbc (diff)
coverity#1343628 Dereference after null check
Change-Id: Ibaac758db8774b5721425354cba1b9f07e8cd0ff
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/inputwin.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index e35e1d41505e..026389e3b864 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1635,8 +1635,10 @@ IMPL_LINK_NOARG_TYPED(ScTextWnd, ModifyHdl, LinkParamNone*, void)
void ScTextWnd::StopEditEngine( bool bAll )
{
- if (pEditEngine)
- pEditEngine->SetNotifyHdl(Link<EENotify&, void>());
+ if (!pEditEngine)
+ return;
+
+ pEditEngine->SetNotifyHdl(Link<EENotify&, void>());
if (pEditView)
{