DecisionTree throws NullReferenceException when calling setter function