diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 16:25:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 17:00:27 +0000 |
commit | 973ff09ee7e7a1926326db6accf9e3e40e901874 (patch) | |
tree | ba86c9eb91520a843e70aad3de2c6ab1df6f9ed3 /linguistic/source | |
parent | 10be411f33c69db83cc5de410eaddf2d297608ae (diff) |
coverity#982461 Unchecked dynamic_cast
Change-Id: I3933b2cd03b8e1dff7bcb106d841a429e4d0ba53
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 041cea75a305..014c3ec3e7f6 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -1021,7 +1021,7 @@ void LngSvcMgr::GetGrammarCheckerDsp_Impl( sal_Bool bSetSvcList ) pGrammarDsp = dynamic_cast< GrammarCheckingIterator * >(xGCI.get()); xGrammarDsp = xGCI; SAL_WARN_IF( pGrammarDsp == NULL, "linguistic", "failed to get implementation" ); - if (bSetSvcList) + if (bSetSvcList && pGrammarDsp) SetCfgServiceLists( *pGrammarDsp ); } } |