sw/source/uibase/app/apphdl.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit b5a79a6e81086df034632716110124af6ee35109 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Apr 10 16:21:33 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Apr 10 18:06:16 2020 +0200 null-deref of GetObjectShell Change-Id: Ie0c46635d9ad01a17b5d5028ed5f983fd8c5ee74 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92046 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits