Skip to content
Permalink
Browse files

JENKINS-13160 Add null check in CloneWorkspaceSCM.createChangeLogPars…

…er() to prevent NPE.
  • Loading branch information
rzwerus committed Feb 21, 2013
1 parent 4a4de79 commit 968dff386c8aad0e2c25f11dd1bf657093ee7bb6
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/hudson/plugins/cloneworkspace/CloneWorkspaceSCM.java
@@ -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 {

0 comments on commit 968dff3

Please sign in to comment.
You can’t perform that action at this time.