diff options
Diffstat (limited to 'sw/source/uibase/uiview/view2.cxx')
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index f74f21728761..40925db3e5c0 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -1072,8 +1072,11 @@ void SwView::Execute(SfxRequest &rReq) pVFrame->ToggleChildWindow( SID_NAVIGATOR ); pCh = pVFrame->GetChildWindow( SID_NAVIGATOR ); } - static_cast<SwNavigationPI*>( pCh->GetContextWindow(SW_MOD()))->CreateNavigationTool( - GetVisArea(), true, &pVFrame->GetWindow()); + if (pCh) + { + static_cast<SwNavigationPI*>( pCh->GetContextWindow(SW_MOD()))->CreateNavigationTool( + GetVisArea(), true, &pVFrame->GetWindow()); + } } break; case SID_JUMPTOMARK: |