ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38056] New: - NPE from IntrospectionHelper.supportsNestedElement when using presetdefs
Date Tue, 27 Dec 2005 23:58:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38056>.
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=38056

           Summary: NPE from IntrospectionHelper.supportsNestedElement when
                    using presetdefs
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core
        AssignedTo: jglick@netbeans.org
        ReportedBy: jglick@netbeans.org
                CC: dev@ant.apache.org


Obscure; detected in

http://www.netbeans.org/issues/show_bug.cgi?id=70815

Easy to reproduce: just run this target twice in a row:

        <copy todir=".">
            <fileset dir="." includes="nonexistent"/>
        </copy>
        <presetdef name="copy">
            <copy verbose="true"/>
        </presetdef>

You get (in Ant 1.7 dev):

java.lang.NullPointerException
	at
org.apache.tools.ant.IntrospectionHelper.supportsNestedElement(IntrospectionHelper.java:647)
	at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:528)
	at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:332)
	at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:182)
	at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
	at org.apache.tools.ant.Task.getReplacement(Task.java:434)
	at org.apache.tools.ant.Task.perform(Task.java:384)
	at org.apache.tools.ant.Target.execute(Target.java:356)
	at org.apache.tools.ant.Target.performTasks(Target.java:384)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1243)
[...]

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message