diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/app/apphdl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx index 782445027c8c..e8bfe164cdca 100644 --- a/sw/source/uibase/app/apphdl.cxx +++ b/sw/source/uibase/app/apphdl.cxx @@ -158,7 +158,8 @@ void SwModule::StateOther(SfxItemSet &rSet) break; case FN_MAILMERGE_WIZARD: { - if (GetObjectShell()->isExportLocked()) + SfxObjectShell* pObjectShell = GetObjectShell(); + if (pObjectShell && pObjectShell->isExportLocked()) rSet.DisableItem(nWhich); break; } |