diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java b/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java index e780a486a..ba213b7a4 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java @@ -278,14 +278,15 @@ public final class StyleSheet implements HDFType { 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);