diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 15:59:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 20:08:24 +0000 |
commit | 6943c70c159279f57490744d762787cef1f0d65a (patch) | |
tree | b692db4dac4a88d66e35be5e894417ff8742387b | |
parent | 2fa807929fe6e5bfd658eb24989c314907ddb014 (diff) |
coverity#1038300 Explicit null dereferenced
Change-Id: Id16363ad334c9c5801851806984cb14a6244bf54
-rw-r--r-- | sw/source/ui/shells/textsh1.cxx | 2 |
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"); } |