sw/source/uibase/shells/textfld.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ebbebb3668a1f85478968bbc2b9e55ade0daa677 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> AuthorDate: Mon Dec 23 18:49:08 2024 -0500 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Jan 7 09:00:16 2025 +0100 sw: protect against null annotation window Signed-off-by: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Change-Id: I3d2b820d492757c60e396b5eda484bb3c049928c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179375 Tested-by: Jenkins Reviewed-by: Jaume Pujantell <jaume.pujant...@collabora.com> (cherry picked from commit 75d47b87abde45591128ae7a12fb0b0fad6768c2) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179841 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx index 554ccb610a7c..42fd111f2684 100644 --- a/sw/source/uibase/shells/textfld.cxx +++ b/sw/source/uibase/shells/textfld.cxx @@ -124,7 +124,7 @@ static bool lcl_canUserModifyAnnotation(const SwView& rView, std::u16string_view static bool lcl_canUserModifyAnnotation(const SwView& rView, const sw::annotation::SwAnnotationWin* pAnnotationWin) { - return lcl_canUserModifyAnnotation(rView, pAnnotationWin->GetAuthor()); + return pAnnotationWin && lcl_canUserModifyAnnotation(rView, pAnnotationWin->GetAuthor()); } static bool lcl_canUserModifyAnnotation(const SwView& rView, sal_uInt32 nPostItId)