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

New commits:
commit a46123b38f2159d806e76775f0171988a610e82f
Author:     Ashod Nakashian <ashod.nakash...@collabora.co.uk>
AuthorDate: Mon Dec 23 18:49:08 2024 -0500
Commit:     Ashod Nakashian <a...@collabora.com>
CommitDate: Fri Jan 3 18:19:48 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/+/179274
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Jaume Pujantell <jaume.pujant...@collabora.com>

diff --git a/sw/source/uibase/shells/textfld.cxx 
b/sw/source/uibase/shells/textfld.cxx
index fb5617e8a999..cc62255af63a 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)

Reply via email to