sc/source/ui/app/inputhdl.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 2bcfff3f43292b8c81dea32796a3e8c78ec16bc1
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Tue Jul 4 17:46:26 2023 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Wed Jul 5 11:13:52 2023 +0200

    sc: fix crash in ScInputHandler::ShowArgumentsTip
    
    See 
https://crashreport.libreoffice.org/stats/signature/ScInputHandler::ShowArgumentsTip(rtl::OUString%20&)
    
    Change-Id: I0fd61d5cca58121e77e102edd3c8e77c75baf800
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153976
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    (cherry picked from commit c38c8e6574ccb4502fc6a6ffbc4d2f700b582366)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153999
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 1f9ae0c29eeb..e56d94f4c367 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -1137,6 +1137,9 @@ void ScInputHandler::ShowArgumentsTip( OUString& rSelText 
)
         return;
     }
 
+    if ( !pActiveViewSh )
+        return;
+
     ScDocShell* pDocSh = pActiveViewSh->GetViewData().GetDocShell();
     const sal_Unicode cSep = ScCompiler::GetNativeSymbolChar(ocSep);
     const sal_Unicode cSheetSep = pDocSh->GetDocument().GetSheetSeparator();

Reply via email to