Skip to content
Permalink
Browse files
[JENKINS-25940] Add workaround to prevent NPE in Maven projects
  • Loading branch information
daniel-beck committed Jul 8, 2015
1 parent 0834548 commit 512a8fc4e217bf5919590ce067cdc10309103594
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 512a8fc

Please sign in to comment.