diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 12:25:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 16:26:42 +0000 |
commit | 85ac5749080bee41438a12e3f5dfd909dfd61d15 (patch) | |
tree | ce4e04205e8c09035d870c2ebe28db87aa88302f /cui | |
parent | 4a2d2343c6d49c73cb5d18de2602cfffa8df59b3 (diff) |
coverity#704606 Explicit null dereferenced
Change-Id: I984696874455225fc714d25a79e89eb4f879484e
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optlingu.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 93395eee1fec..53f8dba2002f 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -603,6 +603,11 @@ Sequence< OUString > SvxLinguData_Impl::GetSortedImplNames( sal_Int16 nLang, sal case TYPE_GRAMMAR : pTable = &aCfgGrammarTable; break; } Sequence< OUString > aRes; + if (!pTable) + { + SAL_WARN( "cui.options", "unknown linguistic type" ); + return aRes; + } if (pTable->count( nLang )) aRes = (*pTable)[ nLang ]; // add configured services sal_Int32 nIdx = aRes.getLength(); |