diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-10-02 20:47:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-10-03 15:37:32 +0200 |
commit | c60ab1050e901c667ab8949509eaecee7c182b49 (patch) | |
tree | 31e6f69b9a76bc7e69f75c3da0f6725e56e9f2e2 /sw/source/uibase/utlui | |
parent | 2337f70a7631a5d644b123fcbbed375395daa666 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |