sw/source/core/edit/edattr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6a4eaa43b64d243d350e080ddfb95bc40d5681b2 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Nov 8 11:52:04 2014 +0000 coverity#1251172 Dereference null return value Change-Id: Ic1f1c7f055f3fb21e7361a2e14f6eebe3dac4216 diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx index 009f837..6a3cc47 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();
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits