summaryrefslogtreecommitdiff
path: root/sc/source/ui/navipi/navipi.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/navipi/navipi.cxx')
-rw-r--r--sc/source/ui/navipi/navipi.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 75f508d73f5b..148064db54a1 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -461,7 +461,10 @@ ScNavigatorDlg::ScNavigatorDlg(SfxBindings* pB, vcl::Window* pParent)
get(aLbDocuments, "documents");
get(aEdCol, "column");
ScTabViewShell* pViewSh = GetTabViewShell();
- aEdCol->SetNavigatorDlg(this, pViewSh->GetViewData().GetDocument());
+ if (pViewSh)
+ {
+ aEdCol->SetNavigatorDlg(this, pViewSh->GetViewData().GetDocument());
+ }
get(aEdRow, "row");
aEdRow->SetNavigatorDlg(this);
get(aTbxCmd, "toolbox");