coverity#704997 Explicit null dereferenced

Change-Id: I22e7872e45cca981a0b2c24ca8b0393ba1244612
This commit is contained in:
Caolán McNamara
2014-04-04 20:42:12 +01:00
parent 9359f47471
commit 94fccef699

View File

@@ -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<sal_Int16>
(pUseMe->beginLine.getLength());