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

Artifact report NPE when artifact is not in cache

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0-RC1
    • Component/s: Ant
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: