summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-01-19 18:54:28 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-01-19 19:35:28 -0600
commit910b7bf6c6870fed56c4450ed54303a23f5a23da (patch)
treedcbaa1dce13915161b50cd3a42bed23b9b8b5b25 /chart2
parent3f150d2601a5eaec579816bc30a19fc4a446d571 (diff)
coverity#704562 : Dereference after null check
Change-Id: Icf5e2242f73c519de91508eb912a38b21ac9a9d6
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_TextEdit.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController_TextEdit.cxx b/chart2/source/controller/main/ChartController_TextEdit.cxx
index 32e75a805d6d..bc578be38d66 100644
--- a/chart2/source/controller/main/ChartController_TextEdit.cxx
+++ b/chart2/source/controller/main/ChartController_TextEdit.cxx
@@ -151,8 +151,12 @@ bool ChartController::EndTextEdit()
void SAL_CALL ChartController::executeDispatch_InsertSpecialCharacter()
{
SolarMutexGuard aGuard;
-
- if( m_pDrawViewWrapper && !m_pDrawViewWrapper->IsTextEdit() )
+ if( !m_pDrawViewWrapper)
+ {
+ OSL_ENSURE( m_pDrawViewWrapper, "No DrawViewWrapper for ChartController" );
+ return;
+ }
+ if( !m_pDrawViewWrapper->IsTextEdit() )
this->StartTextEdit();
SvxAbstractDialogFactory * pFact = SvxAbstractDialogFactory::Create();