You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/10/11 20:25:17 UTC

[Bug 55650] New: [PATCH] Avoid ArrayIndexOutOfBoundsException when getting cell style w/ no cellStyleXfs

https://issues.apache.org/bugzilla/show_bug.cgi?id=55650

            Bug ID: 55650
           Summary: [PATCH] Avoid ArrayIndexOutOfBoundsException when
                    getting cell style w/ no cellStyleXfs
           Product: POI
           Version: 3.10-dev
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: andre.j.czapszys@gmail.com

I ran into this issue via
org.apache.poi.ss.usermodel.DateUtil.isCellDateFormatted.

Essentially, the issue is that I'm working with xlsx spreadsheets that do not
contain a <cellStyleXfs/> section.  The /cellXfs xf.xfId/ attributes are set to
"0".  Instead of blowing up, I'd like poi to recognize that there is no such
named style and proceed normally.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55650] [PATCH] Avoid ArrayIndexOutOfBoundsException when getting cell style w/ no cellStyleXfs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55650

--- Comment #1 from Andrej <an...@gmail.com> ---
Created attachment 30921
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30921&action=edit
Patch to avoid ArrayIndexOutOfBoundsExeception.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55650] [PATCH] Avoid ArrayIndexOutOfBoundsException when getting cell style w/ no cellStyleXfs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55650

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Nick Burch <ap...@gagravarr.org> ---
Thanks for this, patch applied in r1534818.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org