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 39648] New: - NPE in Resource.toString
Date Tue, 23 May 2006 22:40:07 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=39648>.
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=39648

           Summary: NPE in Resource.toString
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: stevel@apache.org


This code NPEs:
  <target name="sorted-path">
    <resources id="classpath.sorted">
      <sort>
        <path path="${java.class.path}" />
      </sort>
    </resources>
    <property name="path.as.property" refid="classpath.sorted" />
    <echo>${path.as.property}</echo>
    
  </target>

--- Nested Exception ---
java.lang.NullPointerException
        at org.apache.tools.ant.types.resources.Resources.toString(Resources.jav
a:210)
        at org.apache.tools.ant.taskdefs.Property.execute(Property.java:404)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:104)

I was trying to convert the resource to a property to print its contents

-- 
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


Mime
View raw message