fixed null reference exception bug in PopulateTree from ecma
fixed null reference exception bug in PopulateTree from ecma