sw/source/uibase/utlui/content.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8d29c5db519eb83b51f5a799759e4962c4a62487
Author:     Jim Raykowski <[email protected]>
AuthorDate: Sat Dec 18 22:19:13 2021 -0900
Commit:     Jim Raykowski <[email protected]>
CommitDate: Mon Dec 20 07:21:39 2021 +0100

    Check pointer before use
    
    Change-Id: I06a19b4e6a5fa892c8aec555e5416fda7fe24146
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127090
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <[email protected]>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index e29ec40cab33..50b425a51d83 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -2782,7 +2782,7 @@ void SwContentTree::ToggleToRoot()
         {
             for (ContentTypeId i : o3tl::enumrange<ContentTypeId>())
             {
-                if (i != m_nLastSelType)
+                if (i != m_nLastSelType && m_aActiveContentArr[i])
                     m_aActiveContentArr[i]->FillMemberList();
             }
         }

Reply via email to