From 5fa0e2a400704548e85bd05731145303c2a9b694 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 25 Mar 2014 10:17:49 +0000 Subject: coverity#704946 Dereference after null check Change-Id: I816b4305261e6a9971c7cbc838381982972652c2 --- sw/source/core/txtnode/ndtxt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3