From c60ab1050e901c667ab8949509eaecee7c182b49 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 2 Oct 2021 20:47:57 +0100 Subject: cid#1492173 Explicit null dereferenced MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I482b85707894c1b749c55fe1339caa5d2a7ae444 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123009 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/uibase/utlui/content.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sw/source/uibase/utlui') diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 49bfdafe0219..8f8e1531f45c 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -3440,6 +3440,7 @@ void SwContentTree::UpdateTracking() // references if (SwContentAtPos aContentAtPos(IsAttrAtPos::RefMark); m_pActiveShell->GetContentAtPos(m_pActiveShell->GetCursorDocPos(), aContentAtPos) && + aContentAtPos.pFndTextAttr && !(m_bIsRoot && m_nRootType != ContentTypeId::REFERENCE)) { const SwFormatRefMark& rRefMark = aContentAtPos.pFndTextAttr->GetRefMark(); -- cgit