NPE caused by integer fields which have an <fd:initial-value> but no locale
attribute
-------------------------------------------------------------------------------------
Key: COCOON-1844
URL: http://issues.apache.org/jira/browse/COCOON-1844
Project: Cocoon
Type: Bug
Components: Blocks: Forms
Versions: 2.1.9
Reporter: Dewi Roberts
Priority: Minor
Attachments: FormattingDecimalConvertor.java.diff
A NullPointerException is thrown when setting an initial value to a field of
integer datatype without also specifying a locale, but the documentation states
that the locale attribute is optional. The problem is caused when
NumberFormat.getNumberInstance(locale) is passed null instead of using the
NumberFormat.getNumberInstance() method in FormattingDecimalConvertor.
This problem might also affect number, currency and percent datatypes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira