i did not look at all closely at the native impl  i plead incompetence there and it has already been heavily scrutinized but it looked like we would actually get a dcheck failure if name was null so perhaps the docs here should be updated  or the code there should throw 