Ivy
  1. Ivy
  2. IVY-1150

Artifact report NPE when artifact is not in cache

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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)

        Activity

        Steve Jones created issue -
        Hide
        Steve Jones added a comment -

        Patch against 2.10 to fix the issue.

        Show
        Steve Jones added a comment - Patch against 2.10 to fix the issue.
        Steve Jones made changes -
        Field Original Value New Value
        Attachment ivy_2_1_0_artifactReport.patch [ 12428382 ]
        Hide
        Maarten Coene added a comment -

        I've applied your patch in SVN trunk.
        Thanks a lot for your contribution!

        Maarten

        Show
        Maarten Coene added a comment - I've applied your patch in SVN trunk. Thanks a lot for your contribution! Maarten
        Maarten Coene made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Maarten Coene [ maartenc ]
        Fix Version/s trunk [ 12313426 ]
        Resolution Fixed [ 1 ]
        Maarten Coene made changes -
        Fix Version/s 2.2.0-RC1 [ 12315013 ]
        Fix Version/s trunk [ 12313426 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development