summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-25 10:17:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-25 12:33:19 +0000
commit5fa0e2a400704548e85bd05731145303c2a9b694 (patch)
treee85ec722c4160991dda889262af4a15ac2831085
parentbcbef3acbf80cabcd78eb4c6320b6a116a70f5ff (diff)
coverity#704946 Dereference after null check
Change-Id: I816b4305261e6a9971c7cbc838381982972652c2
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 3d3afcb3503a..4812b4d32c9f 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -1125,7 +1125,7 @@ void SwTxtNode::_ChgTxtCollUpdateNum( const SwTxtFmtColl *pOldColl,
pDoc->GetFtnIdxs().UpdateFtn( aTmpIndex);
}
- if( RES_CONDTXTFMTCOLL == pNewColl->Which() )
+ if( pNewColl && RES_CONDTXTFMTCOLL == pNewColl->Which() )
{
// Erfrage die akt. Condition des TextNodes:
ChkCondColl();