Skip to content

Commit

Permalink
[FIXED JENKINS-14766] fixing NPE during polling
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetti committed Aug 12, 2012
1 parent 5a96c3d commit e45fb52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/hudson/plugins/perforce/PerforceSCM.java
Expand Up @@ -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;
}
Expand Down

0 comments on commit e45fb52

Please sign in to comment.