Skip to content

Commit

Permalink
[FIXED JENKINS-38286] prevent NPE in snippet generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jtnord committed Sep 16, 2016
1 parent 8999d29 commit edd7189
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -258,7 +258,10 @@ public String getDisplayName() {
*/
public FormValidation doCheckTestResults(@AncestorInPath AbstractProject project,
@QueryParameter String value) throws IOException {
return FilePath.validateFileMask(project.getSomeWorkspace(), value);
if (project != null) {
return FilePath.validateFileMask(project.getSomeWorkspace(), value);
}
return FormValidation.ok();
}


Expand Down

0 comments on commit edd7189

Please sign in to comment.