diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-03 20:19:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-03 20:33:46 +0100 |
commit | 74355bdab856dd9de2fe269c6faa199bf886f941 (patch) | |
tree | 720c9b0dce3a26504e4d08af7fa372d849f17db5 /sw/source | |
parent | f1a5b2869a8970ec637573d10e5c7cbb5d985902 (diff) |
coverity#1315002 Dereference null return value
Change-Id: Ied9081449a38704382fb24c9a66aec493c60ae00
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/doc/DocumentContentOperationsManager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx index 433c5303e7b1..11039cdb1adc 100644 --- a/sw/source/core/doc/DocumentContentOperationsManager.cxx +++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx @@ -1008,7 +1008,7 @@ namespace //local functions originally from docfmt.cxx { SfxItemIter aIter( rChgSet ); const SfxPoolItem* pItem = aIter.FirstItem(); - if (!IsInvalidItem(pItem)) + if (pItem && !IsInvalidItem(pItem)) { const sal_uInt16 nWhich = pItem->Which(); |