Throw exception for null default value