Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 82950 invoked from network); 4 Jun 2010 08:11:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 08:11:42 -0000 Received: (qmail 62648 invoked by uid 500); 4 Jun 2010 08:11:41 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 62527 invoked by uid 500); 4 Jun 2010 08:11:40 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 62520 invoked by uid 99); 4 Jun 2010 08:11:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 08:11:40 +0000 X-ASF-Spam-Status: No, hits=-1497.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 08:11:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o548BJRV010758 for ; Fri, 4 Jun 2010 08:11:19 GMT Message-ID: <25551296.179101275639079371.JavaMail.jira@thor> Date: Fri, 4 Jun 2010 04:11:19 -0400 (EDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Created: (DIRSERVER-1515) Remove the 'throw new NullPointerException' in the code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Remove the 'throw new NullPointerException' in the code ------------------------------------------------------- Key: DIRSERVER-1515 URL: https://issues.apache.org/jira/browse/DIRSERVER-1515 Project: Directory ApacheDS Issue Type: Bug Affects Versions: 1.5.7 Reporter: Emmanuel Lecharny Fix For: 2.0.0-RC1 There are 43 places where we throw a NullPointerException explicitely. This is very worng. If we do that when a method argument is null, we should instead throw a IllegalArgumentException. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.