sarins / hudson-eclipse

Automatically exported from code.google.com/p/hudson-eclipse
0 stars 0 forks source link

NPE when fetching jobs in v1.0.6 #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Refreshing the hudson view

What is the expected output? What do you see instead?

Would expect to see jobs listed with status, health etc. Instead I get a
NullPointerException:

java.lang.NullPointerException
at dk.contix.eclipse.hudson.BuildStatus.getStatus(BuildStatus.java:20)
at dk.contix.eclipse.hudson.HudsonClient.getJob(HudsonClient.java:156)
at dk.contix.eclipse.hudson.HudsonClient.getJobs(HudsonClient.java:86)
at dk.contix.eclipse.hudson.HudsonClient.getJobs(HudsonClient.java:61)
at
dk.contix.eclipse.hudson.JobContentProvider.getElements(JobContentProvider.java:
88)
at
org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:
937)
at ...

What version of the product are you using? On what operating system?

v1.0.6 on Eclipse v3.4.2

Original issue reported on code.google.com by james.ph...@googlemail.com on 18 May 2009 at 9:35

GoogleCodeExporter commented 8 years ago
Same here.

Eclipse 3.4.2, Hudson plugin 1.0.6, Hudson 1.306

Original comment by robert.munteanu on 18 May 2009 at 11:19

GoogleCodeExporter commented 8 years ago
Which version of Hudson are you using

Original comment by jre...@gmail.com on 18 May 2009 at 12:15

GoogleCodeExporter commented 8 years ago
> Which version of Hudson are you using

I for one am using 1.306

Original comment by robert.munteanu on 18 May 2009 at 12:24

GoogleCodeExporter commented 8 years ago
> Which version of Hudson are you using

1.303 here

Original comment by james.ph...@googlemail.com on 18 May 2009 at 12:35

GoogleCodeExporter commented 8 years ago
Fix has been committed to svn. I haven't been able to reproduce, so if somebody 
could
post the output of job/api/xml, it would be great.

Original comment by jre...@gmail.com on 18 May 2009 at 3:20

GoogleCodeExporter commented 8 years ago
Sample XML attached. In the meantime, I'll give your fix a go.

Original comment by james.ph...@googlemail.com on 18 May 2009 at 3:39

Attachments:

GoogleCodeExporter commented 8 years ago
Fix seems to work here.

Original comment by james.ph...@googlemail.com on 18 May 2009 at 3:57