set when processing the style to avoid a NPE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@
1614926 13f79535-47bb-0310-9956-
ffa450edef68
CharacterProperties parentCHP = new CharacterProperties();
if(baseIndex != NIL_STYLE)
{
-
parentCHP = _styleDescriptions[baseIndex].getCHP();
if(parentCHP == null)
{
createChp(baseIndex);
parentCHP = _styleDescriptions[baseIndex].getCHP();
}
-
+ if(parentCHP == null) {
+ parentCHP = new CharacterProperties();
+ }
}
chp = CharacterSprmUncompressor.uncompressCHP(parentCHP, chpx, 0);