[ 
http://issues.apache.org/jira/browse/COCOON-1844?page=comments#action_12378018 
] 

Dewi Roberts commented on COCOON-1844:
--------------------------------------

Yeah, that's a lot tidier way of going about it, thanks.

> 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
>     Assignee: Simone Gianni
>     Priority: Minor
>      Fix For: 2.1.10-dev (current SVN)
>  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

Reply via email to