diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-13 14:22:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-13 14:56:26 +0000 |
commit | f8ebc65a51a61c1d9b3172467b0770202281db32 (patch) | |
tree | 4f443ba5efbdc583b39f381dfb3d2df032f8e794 | |
parent | 70bf48667272b2d4ab5f3148dc9f66bf5c3f179c (diff) |
coverity#735922 Dereference after null check
Change-Id: Iff9f084d85af4b319c7f175c9b7834fd7ba4603a
-rw-r--r-- | sw/source/core/undo/untbl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx index a631b21b3b24..bf79c6f799ad 100644 --- a/sw/source/core/undo/untbl.cxx +++ b/sw/source/core/undo/untbl.cxx @@ -1652,7 +1652,7 @@ void SwUndoTblNdsChg::SaveNewBoxes( const SwTableNode& rTblNd, // then pBox received nodes from elsewhere. // If bNodesMoved is set for pBox the undo must move the // boxes back, otherwise it must delete them. - sal_Bool bNodesMoved = + sal_Bool bNodesMoved = pSourceBox && ( nNodes != ( pSourceBox->GetSttNd()->EndOfSectionIndex() - pSourceBox->GetSttIdx() ) ) && ( nNodes - 1 > nLineDiff ); |