Kaydet (Commit) 942c21a0 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#1224984 Dereference before check

Change-Id: I93c8326d204d1b15a2a7ac5288a6c767029c6501
üst a64675de
...@@ -1424,10 +1424,12 @@ void ChartModel::update() ...@@ -1424,10 +1424,12 @@ void ChartModel::update()
mpChartView = new ChartView( m_xContext, *this); mpChartView = new ChartView( m_xContext, *this);
xChartView = static_cast< ::cppu::OWeakObject* >( mpChartView ); xChartView = static_cast< ::cppu::OWeakObject* >( mpChartView );
} }
if(mpChartView)
mpChartView->setViewDirty(); {
mpChartView->update(); mpChartView->setViewDirty();
mpChartView->update();
mpChartView->updateOpenGLWindow(); mpChartView->updateOpenGLWindow();
}
} }
} // namespace chart } // namespace chart
......
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