coverity#736136 Dereference null return value
Change-Id: I7668c95e2d40bb4e1e8e24627038b92f93b0008f
This commit is contained in:
@@ -356,7 +356,9 @@ void SAL_CALL ChartController::attachFrame(
|
|||||||
{
|
{
|
||||||
uno::Reference< awt::XWindow > xContainerWindow = xFrame->getContainerWindow();
|
uno::Reference< awt::XWindow > xContainerWindow = xFrame->getContainerWindow();
|
||||||
VCLXWindow* pParentComponent = VCLXWindow::GetImplementation(xContainerWindow);
|
VCLXWindow* pParentComponent = VCLXWindow::GetImplementation(xContainerWindow);
|
||||||
pParentComponent->setVisible(sal_True);
|
assert(pParentComponent);
|
||||||
|
if (pParentComponent)
|
||||||
|
pParentComponent->setVisible(sal_True);
|
||||||
|
|
||||||
pParent = VCLUnoHelper::GetWindow( xContainerWindow );
|
pParent = VCLUnoHelper::GetWindow( xContainerWindow );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user