fixed NPE in Robots avro