incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Mortimer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ODFTOOLKIT-389) NPE when auto-extending Table below a merged CellRange
Date Fri, 18 Apr 2014 12:19:15 GMT
Richard Mortimer created ODFTOOLKIT-389:
-------------------------------------------

             Summary: NPE when auto-extending Table below a merged CellRange
                 Key: ODFTOOLKIT-389
                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-389
             Project: ODF Toolkit
          Issue Type: Bug
          Components: simple api
    Affects Versions: 0.7-incubating
            Reporter: Richard Mortimer


The simple API crashes with a NullPointerException if a Table is auto-extended by retrieving
a Cell directly below an existing merged CellRange in the table.

{code}
java.lang.NullPointerException
at org.odftoolkit.simple.table.Table.appendRow(Table.java:1476)
at org.odftoolkit.simple.table.Table.appendRows(Table.java:1607)
at org.odftoolkit.simple.table.Table.getCellByPosition(Table.java:2859)
at uk.org.oldelvet.odftoolkit.DrawTableOdfTest.testExtendWithCellRangeBroken(DrawTableOdfTest.java:46)
...
{code}

The same, auto-extending, getCellByPosition() call works fine if called before the CellRange
is merged.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message