Skip to content

Commit

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

Please sign in to comment.