Skip to content
Permalink
Browse files
Merge pull request #106 from daniel-beck/JENKINS-25940
[JENKINS-25940] Add workaround to prevent NPE in Maven projects
  • Loading branch information
slide committed Jul 8, 2015
2 parents 0834548 + 512a8fc commit fa8e9e27e6d76f1bb7a57dcb26044d3c7f8ece8c
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/main/java/hudson/plugins/emailext/EmailExtTemplateActionFactory.java
@@ -24,10 +24,12 @@ public class EmailExtTemplateActionFactory extends TransientProjectActionFactory
@Override
public Collection<? extends Action> createFor(AbstractProject target) {
boolean hasEmailExt = false;
for(Object p : target.getPublishersList()) {
if(p instanceof ExtendedEmailPublisher) {
hasEmailExt = true;
break;
if (target.getPublishersList() != null) {
for(Object p : target.getPublishersList()) {
if(p instanceof ExtendedEmailPublisher) {
hasEmailExt = true;
break;
}
}
}

0 comments on commit fa8e9e2

Please sign in to comment.