diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-20 11:00:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-20 16:30:19 +0200 |
commit | c831f667d28640e6877b9b6fcf090db663c368f6 (patch) | |
tree | 81529ee64d1d8f24da4fbdd4109e2e23ebb62eb5 | |
parent | 2533faa1dcb5c2319f05992380cff0d3dc317b11 (diff) |
cid#1509231 Explicit null dereferenced
Change-Id: Iac2f8f3e057f7a27ac0349822ab34f5ad3a6d164
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138580
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/draw/dpage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/draw/dpage.cxx b/sw/source/core/draw/dpage.cxx index fc1c1ebb7524..ea3c0c83f191 100644 --- a/sw/source/core/draw/dpage.cxx +++ b/sw/source/core/draw/dpage.cxx @@ -212,7 +212,7 @@ bool SwDPage::RequestHelp( vcl::Window* pWindow, SdrView const * pView, MouseEvent aMEvt(pWindow->ScreenToOutputPixel(rEvt.GetMousePosPixel()), 1, MouseEventModifiers::NONE, MOUSE_LEFT); pView->PickAnything(aMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt); - if (aVEvt.meEvent == SdrEventKind::ExecuteUrl) + if (aVEvt.meEvent == SdrEventKind::ExecuteUrl && aVEvt.mpURLField) { sText = aVEvt.mpURLField->GetURL(); aPixRect = pWindow->LogicToPixel(aVEvt.mpObj->GetLogicRect()); |