sw/source/core/edit/edglbldc.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0c028d551298b69f153af86c9cbeb01f06c4b810 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Aug 31 13:01:51 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Aug 31 16:12:58 2022 +0200 cid#1500618 Explicit null dereferenced regression from commit 97c934d96be62f906c48561673866399f6469446 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Tue Sep 18 14:32:11 2018 +0200 convert SwGlblDocContents to sorted_vector<unique_ptr<>> Change-Id: I7262bfb07825ed830e9e7fd8a93452fb7e749e8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139103 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/edit/edglbldc.cxx b/sw/source/core/edit/edglbldc.cxx index 93a77ddf5edb..7151939151e1 100644 --- a/sw/source/core/edit/edglbldc.cxx +++ b/sw/source/core/edit/edglbldc.cxx @@ -80,7 +80,8 @@ void SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const pNew.reset(new SwGlblDocContent( pSect )); break; } - rArr.insert( std::move(pNew) ); + if (pNew) + rArr.insert( std::move(pNew) ); } }