Kaydet (Commit) 85ac5749 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704606 Explicit null dereferenced

Change-Id: I984696874455225fc714d25a79e89eb4f879484e
üst 4a2d2343
...@@ -603,6 +603,11 @@ Sequence< OUString > SvxLinguData_Impl::GetSortedImplNames( sal_Int16 nLang, sal ...@@ -603,6 +603,11 @@ Sequence< OUString > SvxLinguData_Impl::GetSortedImplNames( sal_Int16 nLang, sal
case TYPE_GRAMMAR : pTable = &aCfgGrammarTable; break; case TYPE_GRAMMAR : pTable = &aCfgGrammarTable; break;
} }
Sequence< OUString > aRes; Sequence< OUString > aRes;
if (!pTable)
{
SAL_WARN( "cui.options", "unknown linguistic type" );
return aRes;
}
if (pTable->count( nLang )) if (pTable->count( nLang ))
aRes = (*pTable)[ nLang ]; // add configured services aRes = (*pTable)[ nLang ]; // add configured services
sal_Int32 nIdx = aRes.getLength(); sal_Int32 nIdx = aRes.getLength();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment