sw/source/uibase/utlui/content.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 7ee7e966bd123fc571144b08bc07b1536a2e23e9
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Sun May 22 14:38:45 2022 -0800
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Mon May 23 01:23:35 2022 +0200

    tdf#144788 follow up fix: Fix null pointer use
    
    Change-Id: I62c3e337a8ec5391c3f18bb42ce8778acd36451b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134747
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <rayk...@gmail.com>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index deb11ce9160f..91ce874b1553 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -3705,9 +3705,9 @@ void SwContentTree::UpdateTracking()
         // footnotes and endnotes
         if (SwContentAtPos aContentAtPos(IsAttrAtPos::Ftn);
                 
m_pActiveShell->GetContentAtPos(m_pActiveShell->GetCursorDocPos(), 
aContentAtPos)
-            && !(m_bIsRoot
-                && (m_nRootType != ContentTypeId::FOOTNOTE
-                    && m_nRootType != ContentTypeId::ENDNOTE)))
+                && aContentAtPos.pFndTextAttr &&
+                !(m_bIsRoot && (m_nRootType != ContentTypeId::FOOTNOTE &&
+                                m_nRootType != ContentTypeId::ENDNOTE)))
         {
             if (!aContentAtPos.pFndTextAttr->GetFootnote().IsEndNote())
             {

Reply via email to