diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 15:13:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 20:08:19 +0000 |
commit | 2ca6426e38799236ebe676f08e0c063f8e3fd6d6 (patch) | |
tree | a6e5dd2eee063bc8a61702ab4c0260bfa5a55b7a /sc | |
parent | a3b218e021c3b2d5263a34b1386c43dca8f8eaa9 (diff) |
coverity#704716 Dereference after null check
Change-Id: I407ea6b182ebcc72a4de40967b8910d4bd682974
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 3 |
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 |