Summary: | NullPointerException in InternalSheet.getColumnWidth() due to missing defaultcolwidth | ||
---|---|---|---|
Product: | POI | Reporter: | Sergey Vladimirov <vlsergey> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.8-dev | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Attachments: | proposed patch based on different open source projects (i.e. googled for constant) |
Description
Sergey Vladimirov
2011-07-13 15:40:03 UTC
Also happens with 34775.xls, 44010-SingleChart.xls, 44010-TwoCharts.xls. Seems defaultcolwidth may miss if sheet contains only charts Created attachment 27286 [details]
proposed patch based on different open source projects (i.e. googled for constant)
Applied in r1147049 along with a unit test. The proposed defaults agree with the Excel documentation. The default column width in Excel is eight characters (this is true for both binary and OOXML formats). The default row height is 255 twips (12.75 pt). Regards, Yegor |