diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-04-09 15:49:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-04-09 20:01:05 +0200 |
commit | bf88d6d02d01b85e75293579bab35155e513caea (patch) | |
tree | bb868e56072c495d61ee7a89bbcaa72f0995c286 /sc | |
parent | 65b9c4504aead96bbe70658df03e6f1404cec88f (diff) |
GetObjectShell() can return null
Change-Id: Ie410688c124d6653fc58fa9e63bd5dd3b46bf8ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91979
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |