Skip to content

Commit

Permalink
[FIXED JENKINS-25277] NuGet Plugin Job Root NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
Greybird committed Apr 24, 2016
1 parent b4ea598 commit 9df818d
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -55,6 +55,9 @@ protected Action[] getScheduledActions(Node node, XTriggerLog xtl) {

@Override
protected boolean checkIfModified(Node node, XTriggerLog xtl) throws XTriggerException {
if (job == null) {
return false;
}
AbstractProject project = (AbstractProject) job;
NugetGlobalConfiguration configuration = GlobalConfiguration.all().get(NugetGlobalConfiguration.class);
NugetUpdater updater = new NugetUpdater(project.getSomeWorkspace(), configuration, xtl);
Expand All @@ -73,6 +76,9 @@ public NugetTriggerDescriptor getDescriptor() {

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

Expand Down

0 comments on commit 9df818d

Please sign in to comment.