Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1539

NullPointerException in dependencytree with no dependencies

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.5.0-rc1
    • Component/s: Ant
    • Labels:
      None

      Description

      When running <ivy:dependencytree /> in a project with no declared dependencies a NPE is generated:

      /Users/brettw/Documents/lvi/netld/netld/common.xml:16: java.lang.NullPointerException
      	at org.apache.ivy.ant.IvyDependencyTree.printDependencies(IvyDependencyTree.java:56)
      	at org.apache.ivy.ant.IvyDependencyTree.doExecute(IvyDependencyTree.java:52)
      	at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
      	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      	at org.apache.tools.ant.Task.perform(Task.java:348)
      	at org.apache.tools.ant.Target.execute(Target.java:435)
      	at org.apache.tools.ant.Target.performTasks(Target.java:456)
      	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
      	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
      	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
      	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
      	at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:309)
      	at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:224)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      	at org.apache.tools.ant.Task.perform(Task.java:348)
      	at org.apache.tools.ant.Target.execute(Target.java:435)
      	at org.apache.tools.ant.Target.performTasks(Target.java:456)
      	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
      	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
      	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
      	at org.apache.tools.ant.Main.runBuild(Main.java:853)
      	at org.apache.tools.ant.Main.startAnt(Main.java:235)
      	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
      	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
      

        Attachments

          Activity

            People

            • Assignee:
              maartenc Maarten Coene
              Reporter:
              brettw Brett Wooldridge
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: