diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2024-12-23 18:49:08 -0500 |
---|---|---|
committer | Ashod Nakashian <ash@collabora.com> | 2025-01-03 18:19:48 +0100 |
commit | a46123b38f2159d806e76775f0171988a610e82f (patch) | |
tree | 004935b7cf5bc376727cf91ccf138fdaaff31f59 | |
parent | b34cccf291d31c77372cc01470bbf8956ff1ddd5 (diff) |
sw: protect against null annotation window
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Change-Id: I3d2b820d492757c60e396b5eda484bb3c049928c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179274
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jaume Pujantell <jaume.pujantell@collabora.com>
-rw-r--r-- | sw/source/uibase/shells/textfld.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) |