initialize more TAPAbstractType fields to prevent NPE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143694 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0b6a1c5980
commit
dde8c709a7
@ -24,12 +24,22 @@ public final class TableProperties extends TAPAbstractType implements Cloneable
|
||||
|
||||
public TableProperties()
|
||||
{
|
||||
|
||||
setTlp( new TableAutoformatLookSpecifier() );
|
||||
setShdTable( new ShadingDescriptor() );
|
||||
setBrcBottom( new BorderCode() );
|
||||
setBrcHorizontal( new BorderCode() );
|
||||
setBrcLeft( new BorderCode() );
|
||||
setBrcRight( new BorderCode() );
|
||||
setBrcTop( new BorderCode() );
|
||||
setBrcVertical( new BorderCode() );
|
||||
setRgbrcInsideDefault_0( new BorderCode() );
|
||||
setRgbrcInsideDefault_1( new BorderCode() );
|
||||
}
|
||||
|
||||
public TableProperties( short columns )
|
||||
{
|
||||
setTlp( new TableAutoformatLookSpecifier() );
|
||||
this();
|
||||
|
||||
setItcMac( columns );
|
||||
setRgshd( new ShadingDescriptor[columns] );
|
||||
|
||||
@ -38,16 +48,6 @@ public final class TableProperties extends TAPAbstractType implements Cloneable
|
||||
getRgshd()[x] = new ShadingDescriptor();
|
||||
}
|
||||
|
||||
setBrcBottom( new BorderCode() );
|
||||
setBrcHorizontal( new BorderCode() );
|
||||
setBrcLeft( new BorderCode() );
|
||||
setBrcRight( new BorderCode() );
|
||||
setBrcTop( new BorderCode() );
|
||||
setBrcVertical( new BorderCode() );
|
||||
|
||||
setRgbrcInsideDefault_0( new BorderCode() );
|
||||
setRgbrcInsideDefault_1( new BorderCode() );
|
||||
|
||||
TableCellDescriptor[] tableCellDescriptors = new TableCellDescriptor[columns];
|
||||
for ( int x = 0; x < columns; x++ )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user