summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-02 15:59:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-02 20:08:24 +0000
commit6943c70c159279f57490744d762787cef1f0d65a (patch)
treeb692db4dac4a88d66e35be5e894417ff8742387b /sw/source/ui/shells
parent2fa807929fe6e5bfd658eb24989c314907ddb014 (diff)
coverity#1038300 Explicit null dereferenced
Change-Id: Id16363ad334c9c5801851806984cb14a6244bf54
Diffstat (limited to 'sw/source/ui/shells')
-rw-r--r--sw/source/ui/shells/textsh1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx
index 7cbe020572f3..b346e8856bba 100644
--- a/sw/source/ui/shells/textsh1.cxx
+++ b/sw/source/ui/shells/textsh1.cxx
@@ -177,7 +177,7 @@ void sw_CharDialog( SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot,const
if( FN_INSERT_HYPERLINK == nSlot )
pDlg->SetCurPageId("hyperlink");
}
- if (nSlot == SID_CHAR_DLG_EFFECT)
+ if (pDlg && nSlot == SID_CHAR_DLG_EFFECT)
{
pDlg->SetCurPageId("fonteffect");
}