summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-09 07:18:06 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-09 07:19:04 +0000
commit81889ab4ce49e83ef4914dbff403b839c718a08a (patch)
treef7c633ed6ff3ea0183b56d2b9a4afcc2e0e29c61
parentc11c4a11d0b441c7156e0e1420bdc3afca4224e3 (diff)
tdf#100820: missing nullptr check in writer's apphdl.cxx
Change-Id: I32c22b1e2c6ee23ca712bde7b7f86dada654b802 Reviewed-on: https://gerrit.libreoffice.org/27067 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sw/source/uibase/app/apphdl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 9bc5ec11cec6..3090ceb85268 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -239,7 +239,7 @@ void SwModule::StateOther(SfxItemSet &rSet)
case FN_MAILMERGE_EMAIL_DOCUMENTS:
{
SwView* pView = ::GetActiveView();
- SwMailMergeConfigItem* pConfigItem = pView->GetMailMergeConfigItem();
+ SwMailMergeConfigItem* pConfigItem = pView ? pView->GetMailMergeConfigItem() : nullptr;
// #i51949# hide e-Mail option if e-Mail is not supported
// #i63267# printing might be disabled