Skip to content

Commit

Permalink
JENKINS-13160 Add null check in CloneWorkspaceSCM.createChangeLogPars…
Browse files Browse the repository at this point in the history
…er() to prevent NPE.
  • Loading branch information
Robert Zwerus committed Feb 21, 2013
1 parent 4a4de79 commit 968dff3
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -182,6 +182,10 @@ private boolean calcChangeLog(AbstractBuild<?,?> parentBuild, File changelogFile
@Override
public ChangeLogParser createChangeLogParser() {
AbstractProject<?,?> p = getContainingProject();
if (p == null) {
return null;
}

final AbstractBuild lastBuild = p.getLastBuild();

try {
Expand Down

0 comments on commit 968dff3

Please sign in to comment.