sc/source/ui/view/editsh.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bf88d6d02d01b85e75293579bab35155e513caea
Author:     Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
AuthorDate: Thu Apr 9 15:49:53 2020 +0200
Commit:     Stephan Bergmann <sberg...@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 <sberg...@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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to