Skip to content
Permalink
Browse files

[FIXED JENKINS-14766] fixing NPE during polling

  • Loading branch information...
rpetti committed Aug 12, 2012
1 parent 5a96c3d commit e45fb52bbf693283d1393926bd74f2c61189b1b3
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/hudson/plugins/perforce/PerforceSCM.java
@@ -591,8 +591,10 @@ private String getEffectiveProjectPath(AbstractBuild build, AbstractProject proj
String projectPath;
if (useClientSpec) {
projectPath = getEffectiveProjectPathFromFile(build, project, log, depot);
} else {
} else if (build != null) {
projectPath = substituteParameters(this.projectPath, build);
} else {
projectPath = substituteParameters(this.projectPath, getDefaultSubstitutions(project));
}
return projectPath;
}

0 comments on commit e45fb52

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