code style
throw illegal argument exception when null is added to a slot