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

Artifact report NPE when artifact is not in cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0-RC1
    • Ant
    • None
    • Fedora 12, Sun JDK 1.6.0 u16, Ant 1.7.0

    Description

      When an artifact report is generated after using resolve and publish with the option haltonfailure="false" an NPE will occur if an artifact is not in the cache:

      java.lang.NullPointerException
      at org.apache.ivy.ant.IvyArtifactReport.writeCacheLocation(IvyArtifactReport.java:251)
      at org.apache.ivy.ant.IvyArtifactReport.generateXml(IvyArtifactReport.java:158)
      at org.apache.ivy.ant.IvyArtifactReport.doExecute(IvyArtifactReport.java:117)
      at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)

      Attachments

        Activity

          People

            maartenc Maarten Coene
            sjones4 Steve Jones
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: