]> source.dussan.org Git - poi.git/commitdiff
fix NPE
authorSergey Vladimirov <sergey@apache.org>
Tue, 23 Aug 2011 09:26:37 +0000 (09:26 +0000)
committerSergey Vladimirov <sergey@apache.org>
Tue, 23 Aug 2011 09:26:37 +0000 (09:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160596 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/model/CHPX.java

index 5789c8245c2256aee50709686ed999bfd5e0622b..add8ec9b1d0e70a519134c2208674011d01f5ccf 100644 (file)
@@ -72,9 +72,11 @@ public final class CHPX extends BytePropertyNode<CHPX>
         }
 
         CharacterProperties baseStyle = ss.getCharacterStyle( istd );
+        if (baseStyle == null)
+            baseStyle = new CharacterProperties();
+
         CharacterProperties props = CharacterSprmUncompressor.uncompressCHP(
                 baseStyle, getGrpprl(), 0 );
-        ;
         return props;
     }