diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-24 10:21:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-24 12:12:28 +0000 |
commit | e05e38cbeaf77531227f77100ee1e1f0c8434cc0 (patch) | |
tree | 43dbcdfe11488e1856b6ba99d1c2a9a56a13be40 /sw | |
parent | a1196fc0acc5aecf51c5a89bef127b2ad69d7719 (diff) |
coverity#705483 Dereference null return value
Change-Id: I0236edf351bd760dfbc6a4742f8b8c85c35d155f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/attr/swatrset.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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, |