[
https://issues.jenkins-ci.org/browse/JENKINS-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159784#comment-159784
]
SCM/JIRA link daemon commented on JENKINS-1144:
-----------------------------------------------
Code changed in jenkins
User: slide
Path:
src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java
src/main/java/hudson/plugins/emailext/EmailRecepientUtils.java
src/main/java/hudson/plugins/emailext/EmailType.java
src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java
src/main/java/hudson/plugins/emailext/plugins/ContentBuilder.java
src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly
src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
src/test/java/hudson/plugins/emailext/plugins/ContentBuilderTest.java
http://jenkins-ci.org/commit/email-ext-plugin/09296a6d5e321ea6a553b0ff1de58a6b165d13c7
Log:
Merge pull request #27 from slide/master
Fix JENKINS-11683, JENKINS-1144, JENKINS-11665
Compare: https://github.com/jenkinsci/email-ext-plugin/compare/3789acf...09296a6
> email-ext plugin causes NullPointerException when sending email for
> successful build
> ------------------------------------------------------------------------------------
>
> Key: JENKINS-1144
> URL: https://issues.jenkins-ci.org/browse/JENKINS-1144
> Project: Jenkins
> Issue Type: Bug
> Components: email-ext
> Affects Versions: current
> Environment: Platform: All, OS: Linux
> Reporter: brad_c
> Assignee: Slide-O-Mix
>
> I have Hudson 1.146 and email-ext 1.2 installed. I previously had email
> notifications working for my job using the email config provided by Hudson.
> I configured the email-ext plugin to send emails on successful builds, but an
> NPE is thrown in the hudson.Util.encode() method when it attempts to send the
> email.
> I tried this with the option for "E-mail Notification" checked and with it
> unchecked, and the NPE occurred for both scenarios.
> Here is the output from my job ( the email address was xxx'ed out )
> ---------------------
> BUILD SUCCESSFUL
> Total time: 2 minutes 25 seconds
> Recording fingerprints
> Recording test results
> Sending e-mails to: [email protected]
> FATAL: null
> java.lang.NullPointerException
> at hudson.Util.encode(Util.java:400)
> at
> hudson.plugins.emailext.ExtendedEmailPublisher.transformText(ExtendedEmailPublisher.java:244)
> at
> hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:195)
> at
> hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:167)
> at
> hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:155)
> at
> hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:124)
> at hudson.model.Build$RunnerImpl.post2(Build.java:138)
> at
> hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:244)
> at hudson.model.Run.run(Run.java:597)
> at hudson.model.Build.run(Build.java:103)
> at hudson.model.ResourceController.execute(ResourceController.java:66)
> at hudson.model.Executor.run(Executor.java:62)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira