Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 83427 invoked from network); 21 Sep 2006 08:59:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2006 08:59:53 -0000 Received: (qmail 5136 invoked by uid 500); 21 Sep 2006 08:59:52 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 4931 invoked by uid 500); 21 Sep 2006 08:59:51 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 4920 invoked by uid 99); 21 Sep 2006 08:59:51 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Sep 2006 01:59:51 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from [209.237.227.198] ([209.237.227.198:58798] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 6F/C4-04092-48452154 for ; Thu, 21 Sep 2006 01:59:49 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id 6C42F714302; Thu, 21 Sep 2006 08:56:01 +0000 (GMT) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 40565] New: - NPE in if a resource has no name Message-ID: X-Bugzilla-Reason: AssignedTo Date: Thu, 21 Sep 2006 08:56:01 +0000 (GMT) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=40565 Summary: NPE in if a resource has no name Product: Ant Version: 1.7Alpha (nightly) Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: stevel@apache.org We have an NPE in a copy if the resource doesnt have a name: leads to --- Nested Exception --- java.lang.NullPointerException at org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources(Resour ceUtils.java:156) at org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources(Resour ceUtils.java:124) at org.apache.tools.ant.taskdefs.Copy.buildMap(Copy.java:730) at org.apache.tools.ant.taskdefs.Copy.scan(Copy.java:662) at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:545) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:276) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:105) I dont know what the correct behaviour for an anonymous resource should be in a copy, but an NPE is not it. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org