google-nomulus/java/google/registry/model/domain
nickfelt d1ea3e3a68 Fix NPE bug in DomainCommand.cloneAndLinkReferences()
See b/30806813 for more context.  Copied from there:  This appears to be happening if we get an EPP domain create command that is missing any contacts (but has a registrant; with no registrant we exercise a different codepath).  In that case, JAXB leaves the contacts field on the Create null, and we try to pass it into Sets.union() as a result of Corey's refactoring in [] that changed contact loading to load the contacts and registrant all at once.  The fix is just to apply nullToEmpty() first.

Note that it's always an error to try to create a domain without any non-registrant contacts, but that's supposed to happen later on in BaseDomainCreateFlow.verifyCreateIsAllowed() via validateRequiredContactsPresent(), which will produce a nice error message.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130309019
2016-08-15 17:13:29 -04:00
..
allocate Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
fee Support version 0.12 of the EPP Fee Extension 2016-07-21 14:55:08 -04:00
fee06 Support multiple versions of the EPP Fee Extension 2016-07-21 14:53:50 -04:00
fee11 Support multiple versions of the EPP Fee Extension 2016-07-21 14:53:50 -04:00
fee12 Support version 0.12 of the EPP Fee Extension 2016-07-21 14:55:08 -04:00
flags Add extra flow logic hooks for info and update 2016-08-15 16:51:26 -04:00
launch Replace to(Upper|Lower)Case with Ascii.to$1Case 2016-07-19 10:43:38 -04:00
metadata Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
rgp Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
secdns Add DnsWriter for Cloud DNS 2016-08-05 20:36:52 -04:00
DesignatedContact.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
DomainApplication.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
DomainAuthInfo.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
DomainBase.java Prevent orphan glue records from being published 2016-08-02 19:07:18 -04:00
DomainCommand.java Fix NPE bug in DomainCommand.cloneAndLinkReferences() 2016-08-15 17:13:29 -04:00
DomainObjectSpec.java Support multiple versions of the EPP Fee Extension 2016-07-21 14:53:50 -04:00
DomainRenewData.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
DomainResource.java Add utility methods for copying time transition maps and filtering grace periods 2016-08-15 17:02:51 -04:00
ForeignKeyedDesignatedContact.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GracePeriod.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
LrpToken.java Swap id and indexed field in LrpToken 2016-08-15 16:39:03 -04:00
package-info.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
Period.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ReferenceUnion.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00