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 2015/04/16 10:35:11 UTC

[Bug 57820] New: poi-scratchpad org.apache.poi.hslf.model.Table.initTable NullPointerException

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

            Bug ID: 57820
           Summary: poi-scratchpad
                    org.apache.poi.hslf.model.Table.initTable
                    NullPointerException
           Product: POI
           Version: 3.11-FINAL
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSLF
          Assignee: dev@poi.apache.org
          Reporter: jon_s@aisan-cs.co.jp

Created attachment 32654
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32654&action=edit
powerpoint with a table positioned with its top at -1

org.apache.poi.hslf.model.Table.initTable is making the invalid assumption (it
seems) that -1 will not be a y value for a shape's anchor rectangle. If the
table is located such that it's top evaluates to -1, then row is null at line
174 (row.add(sh[i])), causing an NullPointerException to occur.


run org.apache.poi.hslf.extractor.PowerPointExtractor passing the filename of
the attached powerpoint as an argument.

-- 
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 57820] poi-scratchpad org.apache.poi.hslf.model.Table.initTable NullPointerException

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

Jon Scharff <jo...@aisan-cs.co.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32654|0                           |1
        is obsolete|                            |

--- Comment #1 from Jon Scharff <jo...@aisan-cs.co.jp> ---
Created attachment 32656
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32656&action=edit
[patch] (made with ant -f patch.xml)

includes a ppt that exhibits the issue in test-data/slideshow (same as
attachment 32654), a test added to model.TestTable and a fix to model.Table.

-- 
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 57820] poi-scratchpad org.apache.poi.hslf.model.Table.initTable NullPointerException

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

--- Comment #2 from Jon Scharff <jo...@aisan-cs.co.jp> ---
Forgot to add that the patch was made on the trunk.

-- 
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 57820] poi-scratchpad org.apache.poi.hslf.model.Table.initTable NullPointerException

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

Jon Scharff <jo...@aisan-cs.co.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jon_s@aisan-cs.co.jp
                 OS|                            |All

-- 
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 57820] poi-scratchpad org.apache.poi.hslf.model.Table.initTable NullPointerException

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

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

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

--- Comment #3 from Nick Burch <ap...@gagravarr.org> ---
Thanks! Patch applied in r1674441.

-- 
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