Issue Type: Bug Bug
Affects Versions: current
Assignee: Alex Earl
Components: email-ext
Created: 29/Aug/14 10:23 AM
Description:

Since we upgraded to Jenkins 1.577 (we also upgraded the Email Ext plugin to the latest 2.38.2), we now have NPE when our jobs fail and an email is trying to be sent:

The label "_xwiki_bin_get_Blog_GlobalBlogRss" caused the build to fail
Build step 'Publish Performance test result report' changed build result to FAILURE
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
ERROR: Could not send email as a part of the post-build publishers.
java.lang.NullPointerException
	at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:515)
	at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:290)
	at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:281)
	at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:233)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1064)
	at hudson.model.Run.execute(Run.java:1786)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)
Finished: FAILURE

I check the code and the line 515 of ExtendedEmailPublisher.java:

for (RecipientProvider provider : context.getTrigger().getEmail().getRecipientProviders()) {

So this means either:

  • context is null
  • getTrigger() returns null
  • getEmail() returns null

Any idea?

Thanks

Environment: version 2.38.2
Project: Jenkins
Priority: Major Major
Reporter: Vincent Massol
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to