diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 12:40:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 14:16:12 +0100 |
commit | df184a5352c37b839e6dea9c7145aa8501eb74fc (patch) | |
tree | 247a0f4bcd3d089cb73977864d122bcbead14867 | |
parent | 32ee6a4f6481342f63088592be12bb50e5e80e76 (diff) |
coverity#705484 Dereference null return value
Change-Id: I8bdce34356b50e3b0add4ddedd26bb47d67114ad
-rw-r--r-- | sw/source/core/crsr/swcrsr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx index 3233cd0a6328..b2b6dde7b37c 100644 --- a/sw/source/core/crsr/swcrsr.cxx +++ b/sw/source/core/crsr/swcrsr.cxx @@ -2174,9 +2174,9 @@ SwCursor* SwTableCursor::MakeBoxSels( SwCursor* pAktCrsr ) pNd = rNds.GoPrevSection( &aIdx, true, false ); pPos = pCur->GetPoint(); - if( pNd != &pPos->nNode.GetNode() ) + if (pNd && pNd != &pPos->nNode.GetNode()) pPos->nNode = *pNd; - pPos->nContent.Assign( (SwCntntNode*)pNd, ((SwCntntNode*)pNd)->Len() ); + pPos->nContent.Assign((SwCntntNode*)pNd, pNd ? ((SwCntntNode*)pNd)->Len() : 0); aTmp.erase( aTmp.begin() + nPos ); } |