svx/source/svdraw/svdmrkv.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6312019426f45e0c4b49d7f29506148f93a5c2e1
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Jul 2 09:09:08 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Jul 11 20:00:42 2024 +0200

    cid#1606744 Dereference after null check
    
    Change-Id: Ifbb6417903a2751068597815ad91e90ce6d8f35a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169856
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    (cherry picked from commit a0fe67b2456f5ffb66b6eb0b27c1a19c1347e25e)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170105
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index d79a899de4c8..db730e4a8893 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1233,7 +1233,7 @@ void SdrMarkView::SetMarkHandlesForLOKit(tools::Rectangle 
const & rRect, const S
             if (pViewShell != pOtherShell)
                 SfxLokHelper::notifyOtherView(pViewShell, pOtherShell, 
LOK_CALLBACK_GRAPHIC_VIEW_SELECTION, "selection", sSelectionTextView);
         }
-        else
+        else if (pViewShell)
         {
             // We have a new selection, so both pViewShell and the
             // other views want to know about it.

Reply via email to