summaryrefslogtreecommitdiff
path: root/sw/source/core/access
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2021-05-09 01:30:40 +0200
committerBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2021-05-12 17:19:20 +0200
commitb0ae5aaaafd236663f7e81af06a567ade8a2a745 (patch)
tree20e5868e7631adf343c7d335db6cb858edc26b4a /sw/source/core/access
parentb5c21b95e4b9801902ef9ed3464d09d70d7d1dcf (diff)
tdf#141307: adapt null-check
- if we check pNd for nullptr, we need to expect it to be nullptr - in that case we shouldnt use the pointer before the null check Change-Id: Ia9d11abe32fac10f36fdbfcefeadd51891f1834e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115264 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/source/core/access')
-rw-r--r--sw/source/core/access/accnotextframe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/access/accnotextframe.cxx b/sw/source/core/access/accnotextframe.cxx
index 3dfed9ea3303..d8f37887b4a4 100644
--- a/sw/source/core/access/accnotextframe.cxx
+++ b/sw/source/core/access/accnotextframe.cxx
@@ -63,11 +63,11 @@ SwAccessibleNoTextFrame::SwAccessibleNoTextFrame(
msDesc()
{
const SwNoTextNode* pNd = GetNoTextNode();
- StartListening(const_cast<SwNoTextNode*>(pNd)->GetNotifier());
// #i73249#
// consider new attributes Title and Description
if( pNd )
{
+ StartListening(const_cast<SwNoTextNode*>(pNd)->GetNotifier());
msTitle = pNd->GetTitle();
msDesc = pNd->GetDescription();