coverity#705483 Dereference null return value

Change-Id: I0236edf351bd760dfbc6a4742f8b8c85c35d155f
This commit is contained in:
Caolán McNamara 2014-03-24 10:21:36 +00:00
parent a1196fc0ac
commit e05e38cbea

View File

@ -278,7 +278,7 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
// default list id in the source document, the same
// should be hold in the destination document.
// Thus, create new list id item.
if ( sListId == pSrcDocNumRule->GetDefaultListId() )
if (pSrcDocNumRule && sListId == pSrcDocNumRule->GetDefaultListId())
{
pNewListIdItem = new SfxStringItem (
RES_PARATR_LIST_ID,