incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian Hopf (JIRA)" <>
Subject [jira] [Commented] (ODFTOOLKIT-326) NPE when setting default background in TextCellProperties
Date Mon, 08 Jul 2013 05:25:49 GMT


Florian Hopf commented on ODFTOOLKIT-326:

Thanks for commenting. The impression of this bug having returned is likely caused by our
versioning, which can be confusing sometimes.

This bug is fixed for odftoolkit (parent version) 0.6-incubating, which means it is fixed
for the Simple API version 0.8-incubating. This version is released but due to some problems
with the Maven release process it is not available in any Maven repos. We'll be releasing
another version that will then be available via Maven very soon (once I figured out the rest
of the release problems). 
> NPE when setting default background in TextCellProperties
> ---------------------------------------------------------
>                 Key: ODFTOOLKIT-326
>                 URL:
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>    Affects Versions: 0.5-incubating
>            Reporter: Pavel Jisl
>             Fix For: 0.6-incubating
>         Attachments: testcase-fix-ODFTOOLKIT-326-2.patch, testcase-fix-ODFTOOLKIT-326.patch
> I need to set default cell background. I use method setBackgroundColor(Color aColor)
in TableCellProperties.
> It is said in javadoc, that " If the parameter <code>aColor</code> is null,
the background color definition will be removed.", but it throws NullPointerException, because
it removes background definition, but instead of exit method it tries to set toString() value
of null:
> 		if (aColor == null)
> 			mElement.removeAttribute(FoBackgroundColorAttribute.ATTRIBUTE_NAME.getQName());
> 		mElement.setFoBackgroundColorAttribute(aColor.toString());

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message