From e05e38cbeaf77531227f77100ee1e1f0c8434cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 24 Mar 2014 10:21:36 +0000 Subject: [PATCH] coverity#705483 Dereference null return value Change-Id: I0236edf351bd760dfbc6a4742f8b8c85c35d155f --- sw/source/core/attr/swatrset.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/core/attr/swatrset.cxx b/sw/source/core/attr/swatrset.cxx index 3180ad528467..c7ea1d04cf72 100644 --- a/sw/source/core/attr/swatrset.cxx +++ b/sw/source/core/attr/swatrset.cxx @@ -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,