Skip to content

Commit

Permalink
[JENKINS-45009] If getRecordFromDomain returns null report the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
fbelzunc committed Jun 21, 2017
1 parent c525f6c commit 99e0968
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -280,7 +280,7 @@ public FormValidation doValidateTest(@QueryParameter(fixEmpty = true) String nam

// There should be only one domain as the fake domain only contains one
for (ActiveDirectoryDomain activeDirectoryDomain : activeDirectoryDomains) {
if (activeDirectoryDomain.getRecordFromDomain() != null) {
if (activeDirectoryDomain.getRecordFromDomain() == null) {
return FormValidation.error(name + " doesn't look like a valid domain name");
}
}
Expand Down

0 comments on commit 99e0968

Please sign in to comment.