Skip to content
Permalink
Browse files
[FIXED JENKINS-29787] Fix NPE for race condition.
See JENKINS-29794 for details.
  • Loading branch information
KostyaSha committed Aug 5, 2015
1 parent 9723aab commit 18aca714ac992d6c08fa4999fd09cd0e396ff50b
Showing 1 changed file with 8 additions and 0 deletions.
@@ -157,6 +157,10 @@ public void registerHooks() {

@Override
public void stop() {
if (job == null) {
return;
}

if (getDescriptor().isManageHook()) {
Cleaner cleaner = Cleaner.get();
if (cleaner != null) {
@@ -167,6 +171,10 @@ public void stop() {

@Override
public Collection<? extends Action> getProjectActions() {
if (job == null) {
return Collections.emptyList();
}

return Collections.singleton(new GitHubWebHookPollingAction());
}

0 comments on commit 18aca71

Please sign in to comment.