diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 15:49:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 18:00:50 +0100 |
commit | 4d22bebe5464ce6fb905bcaaf13db3b6587d24d2 (patch) | |
tree | 86242dc5210ec318ac43f55578d24d10f93ba542 /svx/source/form | |
parent | 65ed07a8638f2e9fcb866932a051150455b4766a (diff) |
coverity#735867 Dereference after null check
Change-Id: I6dce94b0f6ad68e9e748b258cd511119201245b9
Diffstat (limited to 'svx/source/form')
-rw-r--r-- | svx/source/form/fmvwimp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx index d6b490568585..9dddc6769a42 100644 --- a/svx/source/form/fmvwimp.cxx +++ b/svx/source/form/fmvwimp.cxx @@ -965,7 +965,7 @@ IMPL_LINK(FmXFormView, OnAutoFocus, void*, /*EMPTYTAG*/) // ensure that the control is visible // 80210 - 12/07/00 - FS - const Window* pCurrentWindow = dynamic_cast< const Window* >( m_pView->GetActualOutDev() ); + const Window* pCurrentWindow = m_pView ? dynamic_cast<const Window*>(m_pView->GetActualOutDev()) : NULL; if ( pCurrentWindow ) { awt::Rectangle aRect = xControlWindow->getPosSize(); |