diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-04 10:32:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-04 11:11:02 +0000 |
commit | 3edd1e697609559b507581352a7c3aa807f4d642 (patch) | |
tree | 4fe60712dc2c7c1dc3551ee002926c87b3e579f1 /sw | |
parent | f9c3d4e81d54b0e520e797cada2af32fa979c089 (diff) |
coverity#1266468 Dereference null return value
Change-Id: Id37b0bc2618cf3aa47616116c62ac3ef8cf60304
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index 40925db3e5c0..be7e8ec5d08c 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -900,7 +900,10 @@ void SwView::Execute(SfxRequest &rReq) pCh = pVFrame->GetChildWindow( SID_NAVIGATOR ); } + if (pCh) + { static_cast<SwNavigationPI*>( pCh->GetContextWindow(SW_MOD()))->GotoPage(); + } } break; case FN_EDIT_CURRENT_TOX: |