Artifact report NPE when artifact is not in cache
-------------------------------------------------
Key: IVY-1150
URL: https://issues.apache.org/jira/browse/IVY-1150
Project: Ivy
Issue Type: Bug
Components: Ant
Affects Versions: 2.1.0
Environment: Fedora 12, Sun JDK 1.6.0 u16, Ant 1.7.0
Reporter: Steve Jones
Attachments: ivy_2_1_0_artifactReport.patch
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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.