Kaydet (Commit) 7209f84f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#736136 Dereference null return value

Change-Id: I7668c95e2d40bb4e1e8e24627038b92f93b0008f
üst fdd186c4
......@@ -356,7 +356,9 @@ void SAL_CALL ChartController::attachFrame(
{
uno::Reference< awt::XWindow > xContainerWindow = xFrame->getContainerWindow();
VCLXWindow* pParentComponent = VCLXWindow::GetImplementation(xContainerWindow);
pParentComponent->setVisible(sal_True);
assert(pParentComponent);
if (pParentComponent)
pParentComponent->setVisible(sal_True);
pParent = VCLUnoHelper::GetWindow( xContainerWindow );
}
......
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