google-nomulus/java/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 MOE strip compatible_with 2016-08-02 19:14:28 -04:00
bigquery Narrowly scope privileges for API service objects 2016-08-02 19:18:09 -04:00
billing MOE strip compatible_with 2016-08-02 19:14:28 -04:00
braintree MOE strip compatible_with 2016-08-02 19:14:28 -04:00
builddefs Use zip_rule() for EAR/WAR deploy archives 2016-08-02 21:00:39 -04:00
config Add instrumentation implementation 2016-08-15 16:58:42 -04:00
cron MOE strip compatible_with 2016-08-02 19:14:28 -04:00
dns Fix NPE in registry_tool when creating or updating a TLD with a dns writer 2016-08-15 16:48:20 -04:00
eclipse Integrate: Eclipse file generation script 2016-05-16 18:39:45 -04:00
env RDAP: Implement entity name search 2016-08-15 17:13:29 -04:00
export Narrowly scope privileges for API service objects 2016-08-02 19:18:09 -04:00
flows Add extra flow logic hooks for info and update 2016-08-15 16:51:26 -04:00
gcs Add escrow file import validation logic 2016-08-02 19:22:30 -04:00
groups Narrowly scope privileges for API service objects 2016-08-02 19:18:09 -04:00
idn Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
keyring/api MOE strip compatible_with 2016-08-02 19:14:28 -04:00
loadtest MOE strip compatible_with 2016-08-02 19:14:28 -04:00
mapreduce MOE strip compatible_with 2016-08-02 19:14:28 -04:00
model Fix NPE bug in DomainCommand.cloneAndLinkReferences() 2016-08-15 17:13:29 -04:00
module Unbreak build by including DNS packages and modules 2016-08-08 16:34:00 -04:00
monitoring Add StackDriver implementation, in monitoring/metrics package 2016-08-15 17:12:35 -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 Narrowly scope privileges for API service objects 2016-08-02 19:18:09 -04:00
security MOE strip compatible_with 2016-08-02 19:14:28 -04:00
storage/drive MOE strip compatible_with 2016-08-02 19:14:28 -04:00
tldconfig/idn MOE strip compatible_with 2016-08-02 19:14:28 -04:00
tmch MOE strip compatible_with 2016-08-02 19:14:28 -04:00
tools Add create_domain command to gtech_tool 2016-08-15 16:53:01 -04:00
ui Use zip_rule() for EAR/WAR deploy archives 2016-08-02 21:00:39 -04:00
util MOE strip compatible_with 2016-08-02 19:14:28 -04:00
whois MOE strip compatible_with 2016-08-02 19:14:28 -04:00
xjc Clean up some genrule() script code 2016-08-05 20:40:39 -04:00
xml MOE strip compatible_with 2016-08-02 19:14:28 -04:00
BUILD Make App Engine API JAR show up in WAR 2016-08-04 15:03:38 -04:00
repositories.bzl Add StackDriver implementation, in monitoring/metrics package 2016-08-15 17:12:35 -04:00