sc/source/ui/app/inputhdl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 864d0f0d8da33f6f5c0a99ae54a52c0172449901 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat May 4 21:20:04 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun May 5 12:38:48 2024 +0200 always check return of SfxViewShell::Current() Change-Id: If8f50536295a44a4a8cf692d758ca03e726902e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167143 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index d04d7fdab547..6dd8315e7b4e 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -1277,7 +1277,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");