diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-13 20:56:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-15 10:21:24 +0100 |
commit | 6093787ceb22456f90cf6585cf24a57c67d019fb (patch) | |
tree | f77cfe83daed4b2830f835622968ad0343185b2e /sw | |
parent | 035d62ef915ac8bd0b93fac45f7cb228ade25c19 (diff) |
coverity#705484 Dereference null return value
Change-Id: I8ba236e64994c6e37e1a782cc911df57cb902f86
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/swcrsr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx index cfd5cb1bf45a..3233cd0a6328 100644 --- a/sw/source/core/crsr/swcrsr.cxx +++ b/sw/source/core/crsr/swcrsr.cxx @@ -2218,7 +2218,7 @@ SwCursor* SwTableCursor::MakeBoxSels( SwCursor* pAktCrsr ) if( !( pNd = &pPos->nNode.GetNode())->IsCntntNode() ) pNd = rNds.GoPrevSection( &pPos->nNode, true, false ); - pPos->nContent.Assign( (SwCntntNode*)pNd, ((SwCntntNode*)pNd)->Len() ); + pPos->nContent.Assign((SwCntntNode*)pNd, pNd ? ((SwCntntNode*)pNd)->Len() : 0); } } return pAktCrsr; |