diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 16:26:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-08 09:56:21 +0100 |
commit | 7209f84fd3cfd10c85d334fb93f6b57e7547c99e (patch) | |
tree | 890fa644277e5ea2f57e28e681fa96d30905a200 /chart2 | |
parent | fdd186c4cdd95b149e800569c3e66069a9bff974 (diff) |
coverity#736136 Dereference null return value
Change-Id: I7668c95e2d40bb4e1e8e24627038b92f93b0008f
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 9a2e97b2def4..79029e6bae09 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -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 ); } |