[GRADLE-722] Null pointer exception in DefaultIvyReportConverter Created: 29/Oct/09  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Phil Messenger Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

One of my plugins makes heavy use of DefaultIvyReportConverter and triggers a null pointer exception. This is caused by handledNodes containing a null value.

Patch below:

diff -r ./src/main/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyReportConverter.java ../../../gradle-0.8/subprojects/gradle-core/src/main/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyReportConverter.java
106,108c106
<
< if (handledNodes.containsKey(nodeId))
< {

> if (handledNodes.containsKey(nodeId)) {
111,115d108
< else
<

{ < handledNodes.put(nodeId, new HashMap<String, DefaultResolvedDependency>()); < }

<



 Comments   
Comment by Hans Dockter [ 20/Apr/10 ]

Hi Phil,

we have restructured the DefaultIvyReportConverter. Do you still run into this issue?

Generated at Wed Jun 30 11:37:09 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.