diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-28 08:32:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-28 11:39:53 +0200 |
commit | 337796cdab209f4dd0768bb61134a37f8f713371 (patch) | |
tree | 4cdc31a603ee9b2d68f6af72a1f1304c6eb3aab3 /sc | |
parent | f68a27f3592d7f419dfdea24bd35a97910662676 (diff) |
cid#1546404 Explicit null dereferenced
Change-Id: I5c868219125387d8f0e5ebd25799be94cfab7188
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157352
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin5.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin5.cxx b/sc/source/ui/view/gridwin5.cxx index 22ee3726b124..206b53843ed6 100644 --- a/sc/source/ui/view/gridwin5.cxx +++ b/sc/source/ui/view/gridwin5.cxx @@ -298,8 +298,11 @@ void ScGridWindow::RequestHelp(const HelpEvent& rHEvt) { if( aVEvt.meEvent == SdrEventKind::ExecuteUrl ) { - aHelpText = SfxHelp::GetURLHelpText(aVEvt.mpURLField->GetURL()); - aPixRect = LogicToPixel(aVEvt.mpObj->GetLogicRect()); + if (aVEvt.mpURLField) + { + aHelpText = SfxHelp::GetURLHelpText(aVEvt.mpURLField->GetURL()); + aPixRect = LogicToPixel(aVEvt.mpObj->GetLogicRect()); + } } else { |