summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-24 14:15:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-24 14:15:07 +0000
commit65ff0a58630c33680f4375636e6af1870def2e9c (patch)
tree72191d69458730f446a7e2dc94379ffa613b6d11 /sc/source/ui/app
parentaeeb9ade187a08b01ebc9aed825d38ff5cc745d5 (diff)
coverity#265794 Dereference null return value
Change-Id: Id0762974d12cd7bc7c2bb1ba64b3bf369418bedb
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/scmod.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 588075e76f04..fd8d866353fa 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -771,12 +771,12 @@ void ScModule::RecentFunctionsChanged()
//! notify all views
SfxViewFrame* pViewFrm = SfxViewFrame::Current();
- if ( pViewFrm && pViewFrm->HasChildWindow(nFuncListID) )
+ if (pViewFrm && pViewFrm->HasChildWindow(nFuncListID))
{
- ScFunctionChildWindow* pWnd = static_cast<ScFunctionChildWindow*>(pViewFrm->GetChildWindow( nFuncListID ));
-
+ ScFunctionChildWindow* pWnd = static_cast<ScFunctionChildWindow*>(pViewFrm->GetChildWindow(nFuncListID));
+ if (!pWnd)
+ return;
ScFunctionDockWin* pFuncList = static_cast<ScFunctionDockWin*>(pWnd->GetWindow());
-
pFuncList->InitLRUList();
}
}