diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-03 20:23:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-03 20:33:47 +0100 |
commit | 11969c48a670c8e47ea4fa5b9d68c877fad50463 (patch) | |
tree | 916c2c79879ee33c461d27528184b8869e6fb941 /sw/source | |
parent | 14c548c283210d0570b23acc9ffbc98d7892568b (diff) |
coverity#1314999 Dereference null return value
Change-Id: Ic1ede6f029e0b0f6e6bbf3a6b9e073d98454a769
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/txtnode/thints.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx index 59205c288e8c..3da268ea6ad6 100644 --- a/sw/source/core/txtnode/thints.cxx +++ b/sw/source/core/txtnode/thints.cxx @@ -1804,8 +1804,10 @@ bool SwTextNode::TryCharSetExpandToNum(const SfxItemSet& aCharSet) { bool bRet = false; SfxItemIter aIter( aCharSet ); - const SfxPoolItem* pItem = aIter.FirstItem(); - const sal_uInt16 nWhich = pItem->Which(); + const SfxPoolItem* pItem = aIter.FirstItem(); + if (!pItem) + return bRet; + const sal_uInt16 nWhich = pItem->Which(); const SfxPoolItem& rInnerItem = GetAttr(nWhich,false); |