Kaydet (Commit) 0ac722cc authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1237352 Dereference after null check

Change-Id: Ia9cb84bb0924915d4611c5f18d2a0d19b4198d94
üst c5394594
...@@ -570,11 +570,7 @@ GL3DBarChart::GL3DBarChart( ...@@ -570,11 +570,7 @@ GL3DBarChart::GL3DBarChart(
osl_getSystemTime(&maDataUpdateStartTime); osl_getSystemTime(&maDataUpdateStartTime);
osl_getSystemTime(&maDataUpdateEndTime); osl_getSystemTime(&maDataUpdateEndTime);
} }
Size aSize; Size aSize = mpWindow->GetSizePixel();
if (mpWindow)
{
aSize = mpWindow->GetSizePixel();
}
mpRenderer->SetSize(aSize); mpRenderer->SetSize(aSize);
mpWindow->setRenderer(this); mpWindow->setRenderer(this);
mpWindow->getContext().makeCurrent(); mpWindow->getContext().makeCurrent();
...@@ -602,7 +598,7 @@ GL3DBarChart::~GL3DBarChart() ...@@ -602,7 +598,7 @@ GL3DBarChart::~GL3DBarChart()
joinRenderThread(); joinRenderThread();
if(mbValidContext && mpWindow) if(mbValidContext)
mpWindow->setRenderer(NULL); mpWindow->setRenderer(NULL);
} }
......
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