editeng/source/editeng/impedit.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e62b40b056120bb5eebf00fc88f58fe042356520
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Thu Oct 28 12:33:48 2021 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Fri Oct 29 14:49:03 2021 +0200

    Check pOutWin before use in ImpEditView::DeselectAll
    
    Change-Id: I47e417d61093f1845a1541a65d2047ab8dc0b7d8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124325
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/editeng/source/editeng/impedit.cxx 
b/editeng/source/editeng/impedit.cxx
index 8cee20102c0a..c485b8d64174 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -2036,7 +2036,7 @@ void ImpEditView::DeselectAll()
     SetEditSelection(aNewSelection);
     // const_cast<EditPaM&>(GetEditSelection().Min()) = 
GetEditSelection().Max();
 
-    if (comphelper::LibreOfficeKit::isActive() && mpViewShell)
+    if (comphelper::LibreOfficeKit::isActive() && mpViewShell && pOutWin)
     {
         VclPtr<vcl::Window> pParent = pOutWin->GetParentWithLOKNotifier();
         if (pParent && pParent->GetLOKWindowId())

Reply via email to