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 520071E4A for ; Tue, 19 Apr 2011 14:37:49 +0000 (UTC) Received: (qmail 95118 invoked by uid 500); 18 Apr 2011 22:37:49 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 94955 invoked by uid 500); 18 Apr 2011 22:37:49 -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 94947 invoked by uid 99); 18 Apr 2011 22:37:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 22:37:49 +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; Mon, 18 Apr 2011 22:37:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B1A25A7266 for ; Mon, 18 Apr 2011 22:37:05 +0000 (UTC) Date: Mon, 18 Apr 2011 22:37:05 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: <211147646.65821.1303166225724.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (VALIDATOR-294) NPE in CodeValidator.validate(null) if RE is null but min or max are not -1 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 NPE in CodeValidator.validate(null) if RE is null but min or max are not -1 --------------------------------------------------------------------------- Key: VALIDATOR-294 URL: https://issues.apache.org/jira/browse/VALIDATOR-294 Project: Commons Validator Issue Type: Bug Components: Routines Affects Versions: 1.3.1 Release Reporter: Sebb The code for the validate() method does not handle all cases of null input correctly. If there is no RE, but min or max are specified (i.e. not -1), then the code length check fails with an NPE. Patch and fix to follow. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira