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

Bruno Dumon commented on COCOON-1571:
-------------------------------------

IMO the locale parameter should not be null. Otherwise we might need to add 
such a check to every widget. I think it would be better to fix the place where 
this code is getting called so that the locale parameter is never null.

> [PATCH] NullPointerException in MultiValueField
> -----------------------------------------------
>
>          Key: COCOON-1571
>          URL: http://issues.apache.org/jira/browse/COCOON-1571
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: Forms
>     Versions: 2.2-dev (Current SVN)
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Peter Brant
>     Assignee: Jean-Baptiste Quenot
>  Attachments: multivaluefield.patch, sample.zip
>
> If the locale is not specified and the selection list is being created 
> dynamically, a NullPointerException can result (in my specific case, it was 
> the 
> DataType implementation using the locale as part of formatting a number).
> Patch is attached.  It just uses the same technique that Field already uses.  
> Patch is against 2.2, but if this could make it into the next 2.1 release 
> too, 
> that would be great.

-- 
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