summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-26 10:19:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-26 12:14:38 +0000
commit0d6a7a56625f7bdd63d87455b7a34cecbb4bf7d2 (patch)
tree5bc5ff1eb72e9825a367f6e52111ab39692c1466
parentb4daae0f4da8c5c7770dc6d8fb8da49ac95fcf56 (diff)
coverity#1266443 Dereference after null check
Change-Id: Ia267546994c34cd6dc8e65cbb7e701c9b300816a
-rw-r--r--sw/source/core/layout/trvlfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index b4820e05312b..d2f9418ff374 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -771,7 +771,7 @@ static bool lcl_UpDown( SwPaM *pPam, const SwCntntFrm *pStart,
// Restrict nX to the left and right borders of pTab:
// (is this really necessary?)
- if ( !pTable->GetUpper()->IsInTab() )
+ if (pTable && !pTable->GetUpper()->IsInTab())
{
const bool bRTL = pTable->IsRightToLeft();
const long nPrtLeft = bRTL ?