sw/source/uibase/utlui/content.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit c60ab1050e901c667ab8949509eaecee7c182b49 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Oct 2 20:47:57 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Oct 3 15:37:32 2021 +0200 cid#1492173 Explicit null dereferenced Change-Id: I482b85707894c1b749c55fe1339caa5d2a7ae444 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123009 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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();