[ 
https://issues.apache.org/jira/browse/MATH-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Luc Maisonobe resolved MATH-861.
--------------------------------

    Resolution: Fixed

Fixed in subversion repository as of r1455233.

Thanks for the suggestion.
                
> Make sure that entries of FieldVectors cannot be null
> -----------------------------------------------------
>
>                 Key: MATH-861
>                 URL: https://issues.apache.org/jira/browse/MATH-861
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Sébastien Brisard
>              Labels: exception, field, linear
>             Fix For: 3.2
>
>
> As part of MATH-854, an extensive review of exceptions possibly thrown 
> throughout CM is being carried out.
> It turns out that in {{FieldVector}}, {{NullArgumentException}}s may occur 
> because {{FieldElement}} throws such an exception for all elementary 
> operation. In {{FieldVector}}, this has an impact on
> * operations involving a {{FieldElement}} as an argument, eg {{mapAdd(T d)}} 
> and the likes: for these method, the throws clause has been altered.
> * operations involving a {{FieldVector}} as an argument, eg 
> {{add(FieldVector<T> v}}. In order to avoid catching and rethrowing a 
> {{NullArgumentException}}, all implementations of {{FieldVector}} should make 
> sure that no vector entry can be {{null}}.
> As a consequence
> * the above statement must be added to the class comment of {{FieldVector}}
> * all constructors, setters and the likes must explicitely check for {{null}}

--
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: http://www.atlassian.com/software/jira

Reply via email to