From c55a6e59eb6a37f859821196b91f89f93ed9075b Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 28 Oct 2021 12:33:48 +0200 Subject: Check pOutWin before use in ImpEditView::DeselectAll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I47e417d61093f1845a1541a65d2047ab8dc0b7d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124325 Tested-by: Jenkins CollaboraOffice Reviewed-by: Szymon Kłos (cherry picked from commit e62b40b056120bb5eebf00fc88f58fe042356520) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124476 Reviewed-by: Aron Budea --- editeng/source/editeng/impedit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index ca12e22fc197..c94197ba8853 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1998,7 +1998,7 @@ void ImpEditView::DeselectAll() SetEditSelection(aNewSelection); // const_cast(GetEditSelection().Min()) = GetEditSelection().Max(); - if (comphelper::LibreOfficeKit::isActive() && mpViewShell) + if (comphelper::LibreOfficeKit::isActive() && mpViewShell && pOutWin) { VclPtr pParent = pOutWin->GetParentWithLOKNotifier(); if (pParent && pParent->GetLOKWindowId()) -- cgit v1.2.3