added a guard to setting the inputconnector; could be a zero pointer