Buggy code:
public class WilksCalculator extends Activity { public Context cont ; public UserStats stats ; SideNavigationView sideNavigationView ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public void wilksPopup ( ) { } public void siffPopup ( ) { } public void checkUserStats ( ) { } public void fillDataStored ( ) { RadioButton male = ( ( RadioButton ) ( findViewById ( gender_male ) ) ) ; RadioButton female = ( ( RadioButton ) ( findViewById ( gender_female ) ) ) ; RadioButton pounds = ( ( RadioButton ) ( findViewById ( weight_lbs ) ) ) ; RadioButton kgs = ( ( RadioButton ) ( findViewById ( weight_kgs ) ) ) ; if ( stats . isMan ) { male . setChecked ( true ) ; } else { female . setChecked ( true ) ; } if ( stats . isKG ) { kgs . setChecked ( true ) ; } else { pounds . setChecked ( true ) ; } EditText weight = ( ( EditText ) ( findViewById ( weight_view ) ) ) ; EditText deadlift_view = ( ( EditText ) ( findViewById ( deadlift_view ) ) ) ; EditText squat_view = ( ( EditText ) ( findViewById ( squat_view ) ) ) ; EditText bench_view = ( ( EditText ) ( findViewById ( bench_view ) ) ) ; weight . setText ( String . valueOf ( stats . weight ) ) ; deadlift_view . setText ( String . valueOf ( stats . deadlift ) ) ; squat_view . setText ( String . valueOf ( stats . squat ) ) ; bench_view . setText ( String . valueOf ( stats . bench ) ) ; InputMethodManager imm = ( ( InputMethodManager ) ( getSystemService ( INPUT_METHOD_SERVICE ) ) ) ; imm . hideSoftInputFromWindow ( weight . getWindowToken ( ) , 0 ) ; imm . hideSoftInputFromWindow ( deadlift_view . getWindowToken ( ) , 0 ) ; imm . hideSoftInputFromWindow ( squat_view . getWindowToken ( ) , 0 ) ; imm . hideSoftInputFromWindow ( bench_view . getWindowToken ( ) , 0 ) ; TextView output = ( ( TextView ) ( findViewById ( output_view ) ) ) ; DecimalFormat df = new DecimalFormat ( "#.###" ) ; if ( ! ( stats . isKG ) ) { if ( ! ( stats . getClassifs ( ) . contains ( "Un-trained" ) ) ) { output . setText ( ( ( ( ( ( "Big<seq2seq4repair_space>3<seq2seq4repair_space>Total:<seq2seq4repair_space>" + ( df . format ( stats . total ) ) ) + "\nWilks<seq2seq4repair_space>Score:<seq2seq4repair_space>" ) + ( df . format ( stats . wilksScore ) ) ) + "\nClassification:<seq2seq4repair_space>" ) + ( stats . getClassifs ( ) ) ) ) ; } else { output . setText ( ( ( ( "Big<seq2seq4repair_space>3<seq2seq4repair_space>Total:<seq2seq4repair_space>" + ( df . format ( stats . total ) ) ) + "\nWilks<seq2seq4repair_space>Score:<seq2seq4repair_space>" ) + ( df . format ( stats . wilksScore ) ) ) ) ; } } else { <START_BUG> if ( ! ( stats . getClassifs ( ) . contains ( "Un-trained" ) ) ) { <END_BUG> output . setText ( ( ( ( ( ( "Big<seq2seq4repair_space>3<seq2seq4repair_space>Total:<seq2seq4repair_space>" + ( df . format ( GeneralUtils . lbToKg ( stats . total ) ) ) ) + "\nWilks<seq2seq4repair_space>Score:<seq2seq4repair_space>" ) + ( df . format ( stats . wilksScore ) ) ) + "\nClassification:<seq2seq4repair_space>" ) + ( stats . getClassifs ( ) ) ) ) ; } else { output . setText ( ( ( ( "Big<seq2seq4repair_space>3<seq2seq4repair_space>Total:<seq2seq4repair_space>" + ( df . format ( GeneralUtils . lbToKg ( stats . total ) ) ) ) + "\nWilks<seq2seq4repair_space>Score:<seq2seq4repair_space>" ) + ( df . format ( stats . wilksScore ) ) ) ) ; } } output . setOnClickListener ( new OnClickListener ( ) { @ Override public void onClick ( View v ) { wilksPopup ( ) ; } } ) ; setButtonsOnClick ( male , female , pounds , kgs , weight , deadlift_view , squat_view , bench_view ) ; } public void fillDataEmpty ( ) { } public void setButtonsOnClick ( final RadioButton male , RadioButton female , final RadioButton pounds , RadioButton kgs , final EditText weight_view , final EditText deadlift_view , final EditText squat_view , final EditText bench_view ) { } public void handleClear ( ) { } }

Fix:
if ( ( ( stats . getClassifs ( ) ) != null ) && ( ! ( stats . getClassifs ( ) . contains ( "Un-trained" ) ) ) ) {