Skip to content

Commit

Permalink
[JENKINS-57313] Fix potential NPE during form validation
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed May 2, 2019
1 parent a95020c commit d244751
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ default FormValidation doCheckName_(@Nonnull String value, @Nonnull AccessContro
try {
try {
sr.loadUserByUsername(v);
User u = User.get(v, false, Collections.emptyMap());
User u = User.get(v); // TODO fix deprecated call while not loading users for this form validation
if (ev.equals(u.getFullName())) {
return FormValidation.respond(FormValidation.Kind.OK, formatUserGroupValidationResponse("person.png", ev, "User", false));
}
Expand Down

0 comments on commit d244751

Please sign in to comment.