sc/source/ui/app/inputhdl.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 58550b67a89b2aa189043e8c6a8be2e8a5976d84 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Tue Jul 4 17:46:26 2023 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Jul 4 21:05:49 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> diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 96c4963fe073..3351408459a9 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();