[Bug 65065] New: NullPointerException in org.apache.poi.xssf.usermodel.XSSFCellStyle#cloneStyleFrom

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 65065] New: NullPointerException in org.apache.poi.xssf.usermodel.XSSFCellStyle#cloneStyleFrom

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=65065

            Bug ID: 65065
           Summary: NullPointerException in
                    org.apache.poi.xssf.usermodel.XSSFCellStyle#cloneStyle
                    From
           Product: POI
           Version: 4.1.2-FINAL
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: major
          Priority: P2
         Component: XSSF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

Exception:
Exception in thread "main" java.lang.NullPointerException
        at
org.apache.poi.xssf.model.StylesTable.getNumberFormatId(StylesTable.java:273)
        at
org.apache.poi.xssf.model.StylesTable.putNumberFormat(StylesTable.java:295)
        at
org.apache.poi.xssf.usermodel.XSSFDataFormat.getFormat(XSSFDataFormat.java:52)
        at
org.apache.poi.xssf.usermodel.XSSFCellStyle.cloneStyleFrom(XSSFCellStyle.java:185)
        at
com.genshui.excel.ExcelStyleTest.copyCellStyle(ExcelStyleTest.java:56)
        at com.genshui.excel.ExcelStyleTest.main(ExcelStyleTest.java:29)


it actually happened in org.apache.poi.xssf.model.StylesTable#getNumberFormatId
when the map numberFormats has a null value

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 65065] NullPointerException in org.apache.poi.xssf.usermodel.XSSFCellStyle#cloneStyleFrom

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=65065

Andreas Beeker <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Andreas Beeker <[hidden email]> ---
as usual: please attach the causing Excel file

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 65065] NullPointerException in org.apache.poi.xssf.usermodel.XSSFCellStyle#cloneStyleFrom

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=65065

--- Comment #2 from [hidden email] ---
Created attachment 37693
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37693&action=edit
the causing Excel file

the causing Excel file

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 65065] NullPointerException in org.apache.poi.xssf.usermodel.XSSFCellStyle#cloneStyleFrom

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=65065

--- Comment #3 from [hidden email] ---
(In reply to Andreas Beeker from comment #1)
> as usual: please attach the causing Excel file

the causing Excel file see Comment 2

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 65065] NullPointerException in org.apache.poi.xssf.usermodel.XSSFCellStyle#cloneStyleFrom

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=65065

Dominik Stadler <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]