Merge "Check for null inputs in the ctor."