Skip to content
Permalink
Browse files
[FIXED JENKINS-38286] prevent NPE in snippet generator
  • Loading branch information
jtnord committed Sep 16, 2016
1 parent 8999d29 commit edd718966bbb7023d7be69d65b99d438757b9808
Showing 1 changed file with 4 additions and 1 deletion.
@@ -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();
}


0 comments on commit edd7189

Please sign in to comment.