Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-9822] occasional NPE when running maven jobs
Originally-Committed-As: 345b3bb3743f93a797c843bfc51d95a90093f144
  • Loading branch information
kutzi committed Jul 16, 2011
1 parent b243b43 commit d338eb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/hudson/maven/MavenBuild.java
Expand Up @@ -540,7 +540,7 @@ public void end() {
}

/**
* Sends the accumuldated log in {@link SplittableBuildListener} to the log of this build.
* Sends the accumulated log in {@link SplittableBuildListener} to the log of this build.
*/
public void appendLastLog() {
try {
Expand Down Expand Up @@ -586,6 +586,11 @@ public void cleanUp(BuildListener listener) {
private void rememberModulesToBuildAgainNextTime() {
MavenModuleSetBuild moduleSetBuild = getModuleSetBuild();

if (moduleSetBuild == null) {
// ModuleSetBuild is gone, for whatever reason JENKINS-9822
return;
}

if(hasntStartedYet()) {
// record modules which have not been build though they should have - i.e. because they
// have SCM changes.
Expand Down

0 comments on commit d338eb6

Please sign in to comment.