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 <raykowj@gmail.com>
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index deb11ce..91ce874 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())
            {