Kaydet (Commit) e93b9dc3 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735915 Dereference after null check

Change-Id: Iaf27a27548c008b4c51a0e187570aa298fd56d7c
üst 659b3b09
...@@ -1114,9 +1114,9 @@ void SwTxtFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew ) ...@@ -1114,9 +1114,9 @@ void SwTxtFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew )
nPos = static_cast<const SwFmtFld*>(pItem)->GetTxtFld()->GetStart(); nPos = static_cast<const SwFmtFld*>(pItem)->GetTxtFld()->GetStart();
if( IsIdxInside( nPos, 1 ) ) if( IsIdxInside( nPos, 1 ) )
{ {
const SfxPoolItem& rOldItem = const SfxPoolItem* pOldItem = pOld ?
static_cast<const SwAttrSetChg*>(pOld)->GetChgSet()->Get( RES_TXTATR_FIELD ); &(static_cast<const SwAttrSetChg*>(pOld)->GetChgSet()->Get(RES_TXTATR_FIELD)) : NULL;
if( pItem == &rOldItem ) if( pItem == pOldItem )
{ {
InvalidatePage(); InvalidatePage();
SetCompletePaint(); SetCompletePaint();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment