Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.5-incubating
-
None
Description
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());