check for null robot pointer