mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Fix missing LRP token during LRP period behavior
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137321673
This commit is contained in:
parent
1ac0832c79
commit
21c0b43af0
4 changed files with 23 additions and 29 deletions
|
@ -278,12 +278,11 @@ public final class TldSpecificLogicProxy {
|
|||
// domain-name-to-assignee match.
|
||||
if (!lrpToken.isEmpty()) {
|
||||
LrpTokenEntity token = ofy().load().key(Key.create(LrpTokenEntity.class, lrpToken)).now();
|
||||
if (token != null) {
|
||||
if (token.getAssignee().equalsIgnoreCase(domainName.toString())
|
||||
if (token != null
|
||||
&& token.getAssignee().equalsIgnoreCase(domainName.toString())
|
||||
&& token.getRedemptionHistoryEntry() == null
|
||||
&& token.getValidTlds().contains(domainName.parent().toString())) {
|
||||
return Optional.of(token);
|
||||
}
|
||||
}
|
||||
}
|
||||
return Optional.<LrpTokenEntity>absent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue