summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/edit/edattr.cxx2
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();