Kaydet (Commit) 910b7bf6 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#704562 : Dereference after null check

Change-Id: Icf5e2242f73c519de91508eb912a38b21ac9a9d6
üst 3f150d26
...@@ -151,8 +151,12 @@ bool ChartController::EndTextEdit() ...@@ -151,8 +151,12 @@ bool ChartController::EndTextEdit()
void SAL_CALL ChartController::executeDispatch_InsertSpecialCharacter() void SAL_CALL ChartController::executeDispatch_InsertSpecialCharacter()
{ {
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
if( !m_pDrawViewWrapper)
if( m_pDrawViewWrapper && !m_pDrawViewWrapper->IsTextEdit() ) {
OSL_ENSURE( m_pDrawViewWrapper, "No DrawViewWrapper for ChartController" );
return;
}
if( !m_pDrawViewWrapper->IsTextEdit() )
this->StartTextEdit(); this->StartTextEdit();
SvxAbstractDialogFactory * pFact = SvxAbstractDialogFactory::Create(); SvxAbstractDialogFactory * pFact = SvxAbstractDialogFactory::Create();
......
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