google-nomulus/javatests/google/registry
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
..
backup Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
bigquery Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
billing Reduce mapreduce shards in tests 2016-08-05 20:41:53 -04:00
builddefs Create zip_file() rule 2016-08-02 19:17:55 -04:00
config Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
cron Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
dns Add dagger map for injecting DnsWriter implementations 2016-08-05 20:38:21 -04:00
export Add LrpToken to export kinds 2016-08-05 20:38:04 -04:00
flows Fix NPE bug in DomainCommand.cloneAndLinkReferences() 2016-08-15 17:13:29 -04:00
groups Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
mapreduce/inputs Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
model Fix NPE bug in DomainCommand.cloneAndLinkReferences() 2016-08-15 17:13:29 -04:00
module Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
monitoring/whitebox Normalize expected exception handling in tests 2016-08-02 19:16:19 -04:00
pricing Use string keys for the multimap of pricing engines for TLDs 2016-08-03 11:16:01 -04:00
rdap RDAP: Implement entity name search 2016-08-15 17:13:29 -04:00
rde Add escrow file import validation logic 2016-08-02 19:22:30 -04:00
request Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
security Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
server Use zip_rule() for EAR/WAR deploy archives 2016-08-02 21:00:39 -04:00
storage/drive Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
testing Add dagger map for injecting DnsWriter implementations 2016-08-05 20:38:21 -04:00
tldconfig/idn Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
tmch Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
tools Add create_domain command to gtech_tool 2016-08-15 16:53:01 -04:00
ui Normalize expected exception handling in tests 2016-08-02 19:16:19 -04:00
util Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
whois Add WHOIS disclaimer text to ConfigModule 2016-07-21 14:55:38 -04:00
xjc Normalize expected exception handling in tests 2016-08-02 19:16:19 -04:00
xml Normalize expected exception handling in tests 2016-08-02 19:16:19 -04:00