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

New commits:
commit aaf24bbfeb7126ac7e3193653a53795e9b817e98
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat May 4 21:20:04 2024 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Tue May 7 08:41:07 2024 +0200

    always check return of SfxViewShell::Current()
    
    Change-Id: If8f50536295a44a4a8cf692d758ca03e726902e3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167074
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index f76842429912..5b1d3cbdbced 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -1292,7 +1292,7 @@ void ScInputHandler::ShowArgumentsTip( OUString& rSelText 
)
                         }
 
                         const SfxViewShell* pViewShell = 
SfxViewShell::Current();
-                        if (comphelper::LibreOfficeKit::isActive() && 
pViewShell->isLOKDesktop())
+                        if (comphelper::LibreOfficeKit::isActive() && 
pViewShell && pViewShell->isLOKDesktop())
                         {
                             tools::JsonWriter writer;
                             writer.put("type", "formulausage");

Reply via email to