Summary: | [PATCH] for NullPointerException at org.apache.poi.ss.usermodel.DateUtil.getJavaDate(DateUtil.java:231) ~[poi-3.11.jar:3.11] | ||
---|---|---|---|
Product: | POI | Reporter: | Roman Stumm <roman.stumm> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.11-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Mac OS X 10.1 | ||
Attachments: | a fix for the bug including unit test |
Description
Roman Stumm
2015-01-29 10:37:49 UTC
The same for other callers of getJavaCalendar() in the same class DateUtil, see method getJavaDate(double date, boolean use1904windowing, TimeZone tz, boolean roundSeconds), getJavaDate(double date, boolean use1904windowing), getJavaDate(double date, boolean use1904windowing, TimeZone tz), Any chance you could put together a small self-contained junit test / program which shows how to trigger this issue? We can then use that to both ensure the fix works, as well as to ensure it doesn't accidentally get broken in the future! Created attachment 32768 [details]
a fix for the bug including unit test
|