diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-15 13:00:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-15 20:55:48 +0000 |
commit | 3a95cbd896c2a9abf89f73d11a829fbefda1da6e (patch) | |
tree | 00daef067d17c1a3265ac79f16fd739df2ee5973 | |
parent | 4a679c92bd43bbd166d31a62c6ee7c04dd3c588f (diff) |
coverity#704921 Dereference after null check
Change-Id: I8b8186935f37981512554d06cd52a47fdc7209e0
-rw-r--r-- | sw/source/core/layout/tabfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 10d5b4de4106..82eeb6eceadd 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -4939,7 +4939,7 @@ void SwCellFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) if( bAttrSetChg ) ((SwAttrSetChg*)pNew)->GetChgSet()->GetItemState( RES_VERT_ORIENT, false, &pItem); - else if ( RES_VERT_ORIENT == pNew->Which() ) + else if (pNew && RES_VERT_ORIENT == pNew->Which()) pItem = pNew; if ( pItem ) |