summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-13 14:22:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-13 14:56:26 +0000
commitf8ebc65a51a61c1d9b3172467b0770202281db32 (patch)
tree4f443ba5efbdc583b39f381dfb3d2df032f8e794
parent70bf48667272b2d4ab5f3148dc9f66bf5c3f179c (diff)
coverity#735922 Dereference after null check
Change-Id: Iff9f084d85af4b319c7f175c9b7834fd7ba4603a
-rw-r--r--sw/source/core/undo/untbl.cxx2
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 );