Update TControls.java

Fixed possible nullpointer exception