From 94fccef699496a38d5d2474158bf11e2091ab5dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 4 Apr 2014 20:42:12 +0100 Subject: [PATCH] coverity#704997 Explicit null dereferenced Change-Id: I22e7872e45cca981a0b2c24ca8b0393ba1244612 --- sw/source/filter/ww8/wrtww8.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index b97f66ded5ba..343e47cac173 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -610,7 +610,7 @@ void WW8Export::ExportDopTypography(WW8DopTypography &rTypo) OSL_ENSURE( nNoNeeded<=1, "Example of unexportable forbidden chars" ); rTypo.reserved1=nUseReserved; - if (rTypo.iLevelOfKinsoku) + if (rTypo.iLevelOfKinsoku && pUseMe) { rTypo.cchFollowingPunct = msword_cast (pUseMe->beginLine.getLength());