coverity#736136 Dereference null return value

Change-Id: I7668c95e2d40bb4e1e8e24627038b92f93b0008f
This commit is contained in:
Caolán McNamara
2014-05-07 16:26:13 +01:00
parent fdd186c4cd
commit 7209f84fd3

View File

@@ -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 );
}