Buggy code:
for ( FragmentBasket basket : fb ) { if ( basket . name . equals ( "Home" ) ) { ( ( RecyclingActivity ) ( this . getActivity ( ) ) ) . itemSelected ( basket ) ; break ; } } } this . < TextView > getAsView ( robot_number_tele ) . setText ( robot ) ; View recycling = this . getActivity ( ) . findViewById ( content ) . getRootView ( ) ; InputMethodManager imm = ( ( InputMethodManager ) ( this . getActivity ( ) . getSystemService ( INPUT_METHOD_SERVICE ) ) ) ; imm . hideSoftInputFromWindow ( recycling . getWindowToken ( ) , RESULT_UNCHANGED_SHOWN ) ; final StackSurfaceView stackSurfaceView = new StackSurfaceView ( this . getActivity ( ) ) ; final SurfaceView sv = this . < SurfaceView > getAsView ( totes_surface ) ; sv . getHolder ( ) . addCallback ( stackSurfaceView ) ; final Button [ ] [ ] button_container = new Button [ 4 ] [ 3 ] ; final Button button_container_minus = this . < Button > getAsView ( button_container_minus ) ; final Button button_container_plus = this . < Button > getAsView ( button_container_plus ) ; final Button button_landfill_minus = this . < Button > getAsView ( button_landfill_minus ) ; final Button button_landfill_plus = this . < Button > getAsView ( button_landfill_plus ) ; final Button button_error_alpha_minus = this . < Button > getAsView ( button_error_alpha_minus ) ; final Button button_error_alpha_plus = this . < Button > getAsView ( button_error_alpha_plus ) ; final Button button_error_beta_minus = this . < Button > getAsView ( button_error_beta_minus ) ; final Button button_error_beta_plus = this . < Button > getAsView ( button_error_beta_plus ) ; final Button button_error_delta_minus = this . < Button > getAsView ( button_error_delta_minus ) ; final Button button_error_delta_plus = this . < Button > getAsView ( button_error_delta_plus ) ; button_container [ 0 ] [ 0 ] = this . < Button > getAsView ( container00 ) ; button_container [ 0 ] [ 1 ] = this . < Button > getAsView ( container01 ) ; button_container [ 0 ] [ 2 ] = this . < Button > getAsView ( container02 ) ; button_container [ 1 ] [ 0 ] = this . < Button > getAsView ( container10 ) ; button_container [ 1 ] [ 1 ] = this . < Button > getAsView ( container11 ) ; button_container [ 1 ] [ 2 ] = this . < Button > getAsView ( container12 ) ; button_container [ 2 ] [ 0 ] = this . < Button > getAsView ( container20 ) ; button_container [ 2 ] [ 1 ] = this . < Button > getAsView ( container21 ) ; button_container [ 2 ] [ 2 ] = this . < Button > getAsView ( container22 ) ; button_container [ 3 ] [ 0 ] = this . < Button > getAsView ( container30 ) ; button_container [ 3 ] [ 1 ] = this . < Button > getAsView ( container31 ) ; button_container [ 3 ] [ 2 ] = this . < Button > getAsView ( container32 ) ; final SurfaceView ssv = this . < SurfaceView > getAsView ( totes_surface ) ; final StandButtonHandler standButtonHandler = new StandButtonHandler ( ( ( RecyclingActivity ) ( this . getActivity ( ) ) ) , this ) ; class TeleOnClickListener implements OnClickListener { public int id ; public TeleOnClickListener ( final int i ) { } @ Override public void onClick ( final View v ) { if ( ! ( v instanceof Button ) ) { return ; } standButtonHandler . onClick ( id ) ; } } <START_BUG> this . < Button > getAsView ( button_container1 ) . setOnClickListener ( new OnClickListener ( ) { <END_BUG> @ Override public void onClick ( View v ) { final RecyclingActivity activity = ( ( RecyclingActivity ) ( TeleOpFragment . this . getActivity ( ) ) ) ; final StandSchema schema = RecyclingActivity . schema ; schema . stacks . clear ( ) ; if ( ( stackSurfaceView . oldSubmitDrawer ) != null ) schema . stacks . add ( new org . team1540 . common . core . schema . impl . ToteStackSchema ( stackSurfaceView . oldSubmitDrawer . oldStack , stackSurfaceView . oldSubmitDrawer . mainStack , stackSurfaceView . oldSubmitDrawer . oContainer , stackSurfaceView . oldSubmitDrawer . mContainer , stackSurfaceView . oldSubmitDrawer . coop ) ) ; for ( SubmitDrawer sd : stackSurfaceView . oldSubmitDrawerStack ) { schema . stacks . add ( new org . team1540 . common . core . schema . impl . ToteStackSchema ( sd . oldStack , sd . mainStack , sd . oContainer , sd . mContainer , sd . coop ) ) ; } FragmentBasket [ ] fb = activity . getPages ( ) ; for ( FragmentBasket basket : fb ) { if ( basket . name . equals ( "Final" ) ) { activity . itemSelected ( basket ) ; break ; } } } } ) ; button_container_minus . setOnClickListener ( new TeleOnClickListener ( id . button_container_minus ) ) ; button_container_plus . setOnClickListener ( new TeleOnClickListener ( id . button_container_plus ) ) ; button_landfill_minus . setOnClickListener ( new TeleOnClickListener ( id . button_landfill_minus ) ) ; button_landfill_plus . setOnClickListener ( new TeleOnClickListener ( id . button_landfill_plus ) ) ; button_container [ 0 ] [ 0 ] . setOnClickListener ( new TeleOnClickListener ( id . container00 ) ) ; button_container [ 0 ] [ 1 ] . setOnClickListener ( new TeleOnClickListener ( id . container01 ) ) ; button_container [ 0 ] [ 2 ] . setOnClickListener ( new TeleOnClickListener ( id . container02 ) ) ; button_container [ 1 ] [ 0 ] . setOnClickListener ( new TeleOnClickListener ( id . container10 ) ) ;

Fix:
this . < Button > getAsView ( button_nnext ) . setOnClickListener ( new OnClickListener ( ) {