summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-02 15:13:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-02 20:08:19 +0000
commit2ca6426e38799236ebe676f08e0c063f8e3fd6d6 (patch)
treea6e5dd2eee063bc8a61702ab4c0260bfa5a55b7a /sc
parenta3b218e021c3b2d5263a34b1386c43dca8f8eaa9 (diff)
coverity#704716 Dereference after null check
Change-Id: I407ea6b182ebcc72a4de40967b8910d4bd682974
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/editsh.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 542b35990af5..9ddedd59fa09 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -727,7 +727,8 @@ void ScEditShell::GetState( SfxItemSet& rSet )
{
OUString aStatusVal;
LanguageType nLang = LANGUAGE_NONE;
- bool bIsLookUpWord = GetStatusValueForThesaurusFromContext( aStatusVal, nLang, *pActiveView );
+ bool bIsLookUpWord = pActiveView ?
+ GetStatusValueForThesaurusFromContext(aStatusVal, nLang, *pActiveView) : false;
rSet.Put( SfxStringItem( SID_THES, aStatusVal ) );
// disable thesaurus context menu entry if there is nothing to look up