sw/source/uibase/utlui/content.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ce69f71983a09416514f0569c6cdfbcde87d4b99 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Sat Dec 18 22:19:13 2021 -0900 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Dec 20 16:22:32 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 <rayk...@gmail.com> Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127155 diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index a18e74c391ef..774576df7d22 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(); } }