diff options
author | Jim Raykowski <raykowj@gmail.com> | 2021-12-18 22:19:13 -0900 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2021-12-20 07:21:39 +0100 |
commit | 8d29c5db519eb83b51f5a799759e4962c4a62487 (patch) | |
tree | 0b0964008f0fcbaceef5aa9ee4c4f3125f00fe39 /sw/source/uibase/utlui | |
parent | e34067483ef78c1569641becfe99b79a97600aed (diff) |
Check pointer before use
Change-Id: I06a19b4e6a5fa892c8aec555e5416fda7fe24146
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127090
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } } |