fixed null check on Sample.cs Name property