[
https://issues.apache.org/jira/browse/ODFTOOLKIT-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Mortimer updated ODFTOOLKIT-389:
----------------------------------------
Attachment: AddTableCellBelowRangeTest.java
A simple test case that shows the getCellByPosition failing if called after a
CellRange is merge but which works fine if the merge is performed after
extending the Table using getCellByPosition.
> 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
> Attachments: AddTableCellBelowRangeTest.java
>
>
> 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)