Empty Changeset causes null pointer

Bug #390596 reported by Craig Hewetson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-hudson
Fix Released
High
Unassigned

Bug Description

The changeset some how is null and then a null pointer gets thrown:

java.lang.NullPointerException
 at java.util.Collections$UnmodifiableCollection.<init>(Collections.java:994)
 at java.util.Collections$UnmodifiableList.<init>(Collections.java:1147)
 at java.util.Collections.unmodifiableList(Collections.java:1133)
 at hudson.plugins.bazaar.BazaarChangeSetList.<init>(BazaarChangeSetList.java:20)
 at hudson.plugins.bazaar.BazaarChangeLogParser.parse(BazaarChangeLogParser.java:47)
 at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:420)
 at hudson.model.AbstractBuild.getChangeSet(AbstractBuild.java:402)
 at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:224)
 at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:877)
 at hudson.model.User.getProjects(User.java:368)
 at hudson.tasks.MailAddressResolver$DefaultAddressResolver.findMailAddressFor(MailAddressResolver.java:149)
 at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:87)
 at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:429)
 at hudson.tasks.MailSender.buildCulpritList(MailSender.java:329)
 at hudson.tasks.MailSender.createEmptyMail(MailSender.java:310)
 at hudson.tasks.MailSender.createFailureMail(MailSender.java:183)
 at hudson.tasks.MailSender.getMail(MailSender.java:114)
 at hudson.tasks.MailSender.execute(MailSender.java:82)
 at hudson.tasks.Mailer.perform(Mailer.java:95)
 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:371)
 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:359)
 at hudson.model.Build$RunnerImpl.post2(Build.java:183)
 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:344)
 at hudson.model.Run.run(Run.java:919)
 at hudson.model.Build.run(Build.java:112)
 at hudson.model.ResourceController.execute(ResourceController.java:93)
 at hudson.model.Executor.run(Executor.java:119)

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

If I can get the maven build going for this project I could fix this bug. and even contribute features.

Revision history for this message
Guillermo Gonzalez (verterok) wrote : Re: [Bug 390596] Re: Empty Changeset causes null pointer

Hi Craig,

Thanks reporting this,

This might be related to not handling an error when the change set is parsed.

What's the issue with the maven build?

Did you configured maven wfollowing the instuctions at
http://wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial (Setting up
the environment section)

Regards,

On Mon, Jun 22, 2009 at 6:53 AM, Craig Hewetson<email address hidden> wrote:
> If I can get the maven build going for this project I could fix this
> bug. and even contribute features.
>
> --
> Empty Changeset causes null pointer
> https://bugs.launchpad.net/bugs/390596
> You received this bug notification because you are the registrant for
> bzr-hudson.
>

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

Hi Guillermo

I must have done something wrong previously but now all is well. I had to
update the bzr-hudson pom.xml file to make use of bzr-java-lib 0.5.1 and not
0.5.0. I have summitted the fix on:
lp:~craighewetson/bzr-hudson/bugfixes

Rgds

Craig

Changed in bzr-hudson:
assignee: nobody → Craig Hewetson (craighewetson)
Changed in bzr-hudson:
importance: Undecided → High
status: New → Fix Committed
Changed in bzr-hudson:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.