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

coverity#705484 Dereference null return value

Change-Id: I8bdce34356b50e3b0add4ddedd26bb47d67114ad
üst 32ee6a4f
...@@ -2174,9 +2174,9 @@ SwCursor* SwTableCursor::MakeBoxSels( SwCursor* pAktCrsr ) ...@@ -2174,9 +2174,9 @@ SwCursor* SwTableCursor::MakeBoxSels( SwCursor* pAktCrsr )
pNd = rNds.GoPrevSection( &aIdx, true, false ); pNd = rNds.GoPrevSection( &aIdx, true, false );
pPos = pCur->GetPoint(); pPos = pCur->GetPoint();
if( pNd != &pPos->nNode.GetNode() ) if (pNd && pNd != &pPos->nNode.GetNode())
pPos->nNode = *pNd; 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 ); aTmp.erase( aTmp.begin() + nPos );
} }
......
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