You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (JIRA)" <ji...@apache.org> on 2011/06/05 17:01:48 UTC

[jira] [Resolved] (MATH-403) Never propagate a "NullPointerException" resulting from bad usage of the API

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

Luc Maisonobe resolved MATH-403.
--------------------------------

    Resolution: Fixed

Fixed in subversion repository as of r1132432.
All NullPointerExceptions thrown explicitely by Apache Commons Math have been replaced by calls to MathUtils.checkNotNull

> Never propagate a "NullPointerException" resulting from bad usage of the API
> ----------------------------------------------------------------------------
>
>                 Key: MATH-403
>                 URL: https://issues.apache.org/jira/browse/MATH-403
>             Project: Commons Math
>          Issue Type: Task
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> Package "exception" contains a class named "NullArgumentException" meant to signal that an argument was "null" where it shouldn't have been.
> For consistency, every method of the API should be checked for "null" arguments and throw "NullArgumentException" appropriately.
> This means hunting down all unchecked uses of references. Is there a tool that will report those?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira