From df4deaf1eebe3262ebd817e8789d4d274d981e8a Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 11 Jul 2011 18:40:34 +0000 Subject: [PATCH] prevent NPE in rare cases git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145284 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/usermodel/TableProperties.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableProperties.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableProperties.java index 498ee59ec..31c3d974e 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableProperties.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableProperties.java @@ -34,6 +34,10 @@ public final class TableProperties extends TAPAbstractType implements Cloneable setBrcVertical( new BorderCode() ); setRgbrcInsideDefault_0( new BorderCode() ); setRgbrcInsideDefault_1( new BorderCode() ); + setRgdxaCenter( new short[0] ); + setRgdxaCenterPrint( new short[0] ); + setRgshd( new ShadingDescriptor[0] ); + setRgtc( new TableCellDescriptor[0] ); } public TableProperties( short columns )