Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

[FIXED JENKINS-13791] naginator plugin NullPointerException on successful build #2

Merged
merged 1 commit into from about 2 years ago

3 participants

BuildHive Nicolas De loof jieryn
Deleted user
ghost commented

No description provided.

BuildHive

Jenkins » naginator-plugin #10 SUCCESS
This pull request looks good
(what's this?)

Nicolas De loof ndeloof merged commit d0d065b into from
Nicolas De loof ndeloof closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

May 16, 2012
jieryn jieryn [FIXED JENKINS-13791] naginator plugin NullPointerException on succes…
…sful build
506f067
This page is out of date. Refresh to see the latest.
8 .classpath
... ... @@ -1,8 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<classpath>
3   - <classpathentry kind="src" path="src/main/java"/>
4   - <classpathentry kind="src" path="src/test/java"/>
5   - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6   - <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
7   - <classpathentry kind="output" path="target/classes"/>
8   -</classpath>
5 .gitignore
... ... @@ -0,0 +1,5 @@
  1 +.classpath
  2 +.project
  3 +.settings/
  4 +target/
  5 +work/
5 src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java
@@ -28,6 +28,11 @@ public void onCompleted(AbstractBuild<?, ?> build, TaskListener listener) {
28 28
29 29 NaginatorPublisher naginator = build.getProject().getPublishersList().get(NaginatorPublisher.class);
30 30
  31 + // JENKINS-13791
  32 + if (naginator == null) {
  33 + return;
  34 + }
  35 +
31 36 // If we're not set to rerun if unstable, and the build's unstable, return true.
32 37 if ((!naginator.isRerunIfUnstable()) && (build.getResult() == Result.UNSTABLE)) {
33 38 return;

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.