https://bz.apache.org/bugzilla/show_bug.cgi?id=63401

            Bug ID: 63401
           Summary: XSSFTable.getName throws an error if called before
                    calling setName
           Product: POI
           Version: 4.0.x-dev
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: dmgau...@uab.edu
  Target Milestone: ---

If an XSSFTable is created, and getName is called before setName is called,
then getName throws an IndexOutOfBounds error.  The simplest way to prevent
this is to call setName inside createTable; I will post a patch and a test case
shortly.

Stack trace:

java.lang.IndexOutOfBoundsException
        at org.apache.xmlbeans.impl.store.Xobj.remove_attribute(Xobj.java:2287)
        at
org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTTableImpl.unsetName(Unknown
Source)
        at org.apache.poi.xssf.usermodel.XSSFTable.setName(XSSFTable.java:395)
        at org.apache.poi.xssf.usermodel.XSSFTable.getName(XSSFTable.java:384)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to