[Libreoffice-commits] core.git: sc/source
Samuel Mehrbrodt (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 9 18:01:40 UTC 2020
sc/source/ui/view/editsh.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bf88d6d02d01b85e75293579bab35155e513caea
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Thu Apr 9 15:49:53 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Apr 9 20:01:05 2020 +0200
GetObjectShell() can return null
Change-Id: Ie410688c124d6653fc58fa9e63bd5dd3b46bf8ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91979
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
Tested-by: Jenkins
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 9997dd3f703d..8460a59fb79d 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -813,7 +813,7 @@ void ScEditShell::GetState( SfxItemSet& rSet )
break;
case SID_COPY:
case SID_CUT:
- if (GetObjectShell()->isContentExtractionLocked())
+ if (GetObjectShell() && GetObjectShell()->isContentExtractionLocked())
{
rSet.DisableItem(SID_COPY);
rSet.DisableItem(SID_CUT);
More information about the Libreoffice-commits
mailing list