coverity#705483 Dereference null return value
Change-Id: I0236edf351bd760dfbc6a4742f8b8c85c35d155f
This commit is contained in:
@@ -278,7 +278,7 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
|
|||||||
// default list id in the source document, the same
|
// default list id in the source document, the same
|
||||||
// should be hold in the destination document.
|
// should be hold in the destination document.
|
||||||
// Thus, create new list id item.
|
// Thus, create new list id item.
|
||||||
if ( sListId == pSrcDocNumRule->GetDefaultListId() )
|
if (pSrcDocNumRule && sListId == pSrcDocNumRule->GetDefaultListId())
|
||||||
{
|
{
|
||||||
pNewListIdItem = new SfxStringItem (
|
pNewListIdItem = new SfxStringItem (
|
||||||
RES_PARATR_LIST_ID,
|
RES_PARATR_LIST_ID,
|
||||||
|
Reference in New Issue
Block a user