sc: fix warning C6011: Dereferencing NULL pointer 'pViewShell'

After
commit 0a231f1237
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date:   Fri May 29 10:55:41 2026 +0200

    drop isLOKDesktop and LOKDeviceFormFactor

E:\jenkins\workspace\lo_tb_master_win_analyze\sc\source\ui\app\inputhdl.cxx(1287) : warning C6011: Dereferencing NULL pointer 'pViewShell'. : Lines: 1136, 1139, 1140, 1141, 1142, 1143, 1144, 1146, 1147, 1148, 1150, 1151, 1152, 1153, 1155, 1157, 1158, 1159, 1160, 1162, 1161, 1163, 1165, 1166, 1167, 1177, 1276, 1277, 1280, 1281, 1283, 1284, 1285, 1286, 1287

Change-Id: I5f72b4ad71de94133a6127d57e357a3bf6dda15c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205864
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
This commit is contained in:
Xisco Fauli
2026-06-01 13:21:13 +02:00
parent 0988bd1b50
commit 750af72a83
+1 -1
View File
@@ -1278,7 +1278,7 @@ void ScInputHandler::ShowArgumentsTip( OUString& rSelText )
}
const SfxViewShell* pViewShell = SfxViewShell::Current();
if (comphelper::LibreOfficeKit::isActive())
if (comphelper::LibreOfficeKit::isActive() && pViewShell)
{
tools::JsonWriter writer;
writer.put("type", "formulausage");