[ 
https://issues.apache.org/jira/browse/ODFTOOLKIT-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Reepmeyer updated ODFTOOLKIT-398:
---------------------------------------
    Attachment: TestCellWithoutTableCellProperties.ods
                odf-toolkit_with_test.patch

I added the svn diff file for the two java changes.  It consists of code change 
and a test for it.  I attached a binary ods file to test the change.  I did not 
include it in the diff since it is binary.  Please add the 
TestCellWithoutTableCellProperties.ods into the simple/src/test/resources/ 
directory with the other test data.

If you run this new test without the new code changes i provided, it fails as 
expected.  If you run the new test WITH the new code changes it will pass.

> crash when calling getCellBackgroundColor from the 
> org.odftoolkit.simple.table.Cell
> -----------------------------------------------------------------------------------
>
>                 Key: ODFTOOLKIT-398
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-398
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>            Reporter: David Reepmeyer
>              Labels: patch
>         Attachments: TestCellWithoutTableCellProperties.ods, 
> odf-toolkit_with_test.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Null pointer exception when running 
> org.odftoolkit.simple.table.Cell.getCellBackgroundColor() method of an empty 
> cell.  I have attached a patch that will fix the problem in the 
> CellStyleHandler class.  A simple null check is all that is needed.  
> Looking for someone to review the patch, then apply the patch if acceptable 
> to the code base.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to