Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 598CF6813 for ; Sun, 5 Jun 2011 15:02:12 +0000 (UTC) Received: (qmail 13450 invoked by uid 500); 5 Jun 2011 15:02:11 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 13381 invoked by uid 500); 5 Jun 2011 15:02:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 13373 invoked by uid 99); 5 Jun 2011 15:02:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 15:02:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 15:02:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 48688101DF9 for ; Sun, 5 Jun 2011 15:01:48 +0000 (UTC) Date: Sun, 5 Jun 2011 15:01:48 +0000 (UTC) From: "Luc Maisonobe (JIRA)" To: issues@commons.apache.org Message-ID: <518257003.69789.1307286108293.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (MATH-403) Never propagate a "NullPointerException" resulting from bad usage of the API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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