From f8ebc65a51a61c1d9b3172467b0770202281db32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 13 Feb 2014 14:22:13 +0000 Subject: [PATCH] coverity#735922 Dereference after null check Change-Id: Iff9f084d85af4b319c7f175c9b7834fd7ba4603a --- sw/source/core/undo/untbl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );