summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-21 16:25:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-21 17:00:27 +0000
commit973ff09ee7e7a1926326db6accf9e3e40e901874 (patch)
treeba86c9eb91520a843e70aad3de2c6ab1df6f9ed3 /linguistic
parent10be411f33c69db83cc5de410eaddf2d297608ae (diff)
coverity#982461 Unchecked dynamic_cast
Change-Id: I3933b2cd03b8e1dff7bcb106d841a429e4d0ba53
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngsvcmgr.cxx2
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 );
}
}