diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-08 11:52:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-08 11:52:04 +0000 |
commit | 6a4eaa43b64d243d350e080ddfb95bc40d5681b2 (patch) | |
tree | 84dcb90fdc429306de5b6570ef1b250fbf14c985 /sw | |
parent | 982855de49d513b3f9a9942154c401482ee35404 (diff) |
coverity#1251172 Dereference null return value
Change-Id: Ic1f1c7f055f3fb21e7361a2e14f6eebe3dac4216
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/edattr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx index 009f837d5c6b..6a3cc47e2cd4 100644 --- a/sw/source/core/edit/edattr.cxx +++ b/sw/source/core/edit/edattr.cxx @@ -420,7 +420,7 @@ std::vector<SwPaM*> SwEditShell::GetSplitPaM( sal_uInt16 nWhich) const SwTxtAttr* pHt = (*pTxtNd->GetpSwpHints())[m]; const SfxItemSet* pAutoSet = CharFmt::GetItemSet ( pHt->GetAttr() ); - if ( isTXTATR_NOEND( pHt->Which() ) || !pAutoSet->HasItem( nWhich ) ) + if (isTXTATR_NOEND(pHt->Which()) || !pAutoSet || !pAutoSet->HasItem(nWhich)) continue; const sal_Int32 nAttrStart = pHt->GetStart(); const sal_Int32* pAttrEnd = pHt->End(); |