Skip to content

Commit

Permalink
Merge pull request #106 from daniel-beck/JENKINS-25940
Browse files Browse the repository at this point in the history
[JENKINS-25940] Add workaround to prevent NPE in Maven projects
  • Loading branch information
slide committed Jul 8, 2015
2 parents 0834548 + 512a8fc commit fa8e9e2
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit fa8e9e2

Please sign in to comment.