Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 92487 invoked from network); 16 Feb 2005 09:55:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Feb 2005 09:55:52 -0000 Received: (qmail 97860 invoked by uid 500); 16 Feb 2005 09:55:49 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 97719 invoked by uid 500); 16 Feb 2005 09:55:48 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 97704 invoked by uid 99); 16 Feb 2005 09:55:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 16 Feb 2005 01:55:47 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j1G9tiSf007145 for ; Wed, 16 Feb 2005 10:55:44 +0100 Message-ID: <439335140.1108547744555.JavaMail.root@ajax.apache.org> Date: Wed, 16 Feb 2005 10:55:44 +0100 (CET) From: "Paul Libbrecht (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Created: (JELLY-202) PatternSet's toString gives NPE Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N PatternSet's toString gives NPE ------------------------------- Key: JELLY-202 URL: http://issues.apache.org/jira/browse/JELLY-202 Project: jelly Type: Bug Components: taglib.ant Versions: 1.0 Reporter: Paul Libbrecht When the logging-level is set to Debug and org.apache.commons.jelly.tags.ant.AntTag is setting properties (actually, before setting the properties) on the ant-tag, the following is attempted: log.debug( "Setting bean property on: "+ object + " name: " + name + " value: " + value ); which fails with a null-pointer for the following reason which I partially share: The toString of object is invoked and, if this one is a org.apache.tools.ant.types.PatternSet (or its inner class), it throws because the name is not set yet. It's not set yet because it's going to be set ! I considered this as a bug, to me, toString() should never throw. Jelly-Ant's ant version is a bit old so I hoped a later version of Ant fixes this. By no means! In todays snapshot, one can see the following: if (name == null) { throw new BuildException( "Missing attribute \"name\" for a pattern"); } I'd propose, thus, to remove the object from the debug line above until we manage to convince anters and we upgrade. log.debug( "Setting bean property on name: " + name + " value: " + value ); paul -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org