diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2021-05-09 01:30:40 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-05-16 23:47:23 +0200 |
commit | 690e841b4b1d0d6394f42670bc6293984ba689bc (patch) | |
tree | 4dbac1cd1301b63f483cbf7a0bce4132099c7d31 /sw | |
parent | 7e0665231813cc155f714ed1f39120ae7efea26e (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>
(cherry picked from commit b0ae5aaaafd236663f7e81af06a567ade8a2a745)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115287
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accnotextframe.cxx | 2 |
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(); |