Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in 2.18 (Jenkins ver. 2.161) #528

Closed
vikulin opened this issue Feb 25, 2019 · 1 comment
Closed

NPE in 2.18 (Jenkins ver. 2.161) #528

vikulin opened this issue Feb 25, 2019 · 1 comment

Comments

@vikulin
Copy link
Contributor

vikulin commented Feb 25, 2019

java.lang.NullPointerException
at jenkins.plugins.slack.StandardSlackService.(StandardSlackService.java:72)
at jenkins.plugins.slack.StandardSlackService.(StandardSlackService.java:59)
at jenkins.plugins.slack.SlackNotifier.newSlackService(SlackNotifier.java:431)
at jenkins.plugins.slack.SlackNotifier.lambda$slackFactory$0(SlackNotifier.java:464)
at jenkins.plugins.slack.ActiveNotifier.completed(ActiveNotifier.java:142)
at jenkins.plugins.slack.SlackNotifier.perform(SlackNotifier.java:445)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
at hudson.model.Run.execute(Run.java:1857)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Slack Notifications' marked build as failure

This exception maps to:
@OverRide
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) {
String buildKey = BuildKey.format(build);
BuildAwareLogger log = createLogger(listener);
log.debug(buildKey, "Performing complete notifications");
JenkinsTokenExpander tokenExpander = new JenkinsTokenExpander(listener);
-->>new ActiveNotifier(this, slackFactory(listener), log, tokenExpander).completed(build);
if (notifyRegression) {
log.debug(buildKey, "Performing finalize notifications");
new ActiveNotifier(this, slackFactory(listener), log, tokenExpander).finalized(build);
}
return true;
}

@timja
Copy link
Member

timja commented Mar 16, 2019

Should be fixed in #541

@timja timja closed this as completed Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants