Buggy code:
private static final int POINTCHECK = 10 ; public String modNum ; public int cabHarvestCount = 0 ; public int strawHarvestCount = 0 ; public boolean storage_flag = false ; private long backKeyPressedTime = 0 ; Toast toast ; public Handler m_handler = new Handler ( ) { public int someVal ; @ Override public void handleMessage ( Message msg ) { } public int getValue ( ) { } } ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onBackPressed ( ) { } public void showToast ( ) { } private class CropInfo extends AsyncTask < String , String , JSONObject > { public int fromWhere ; private CropInfo ( int fromWhere ) { } protected void onPreExecute ( ) { } @ Override protected JSONObject doInBackground ( String ... params ) { } boolean isDuple ( String modNum ) { } @ Override protected void onPostExecute ( JSONObject json ) { try { if ( json == null ) { if ( ( fromWhere ) == ( MainActivity . WATER ) ) Toast . makeText ( MainActivity . this , "물주기<seq2seq4repair_space>요청" , LENGTH_SHORT ) . show ( ) ; else if ( ( fromWhere ) == ( MainActivity . FERTLIZER ) ) Toast . makeText ( MainActivity . this , "거름주기<seq2seq4repair_space>요청" , LENGTH_SHORT ) . show ( ) ; else if ( ( fromWhere ) == ( MainActivity . WEED ) ) Toast . makeText ( MainActivity . this , "잡초제거<seq2seq4repair_space>요청" , LENGTH_SHORT ) . show ( ) ; else if ( ( fromWhere ) == ( MainActivity . NOTE ) ) { Bundle args = new Bundle ( ) ; args . putString ( "mobno" , "farmer" ) ; args . putString ( "name" , gMain . id ) ; Intent note = new Intent ( MainActivity . this , NoteActivity . class ) ; note . putExtra ( "INFO" , args ) ; startActivity ( note ) ; } else if ( ( fromWhere ) == ( MainActivity . MESSAGE ) ) { Bundle args = new Bundle ( ) ; args . putString ( "mobno" , "farmer" ) ; args . putString ( "name" , gMain . id ) ; Intent chat = new Intent ( MainActivity . this , ChatActivity . class ) ; chat . putExtra ( "INFO" , args ) ; startActivity ( chat ) ; } } else if ( "requestExist" . equals ( json . getString ( "result" ) ) ) { Toast . makeText ( MainActivity . this , "요청을<seq2seq4repair_space>이미<seq2seq4repair_space>하셨습니다." , LENGTH_SHORT ) . show ( ) ; return ; } else { Log . d ( "test" , "else" ) ; if ( ( fromWhere ) == ( MainActivity . POINTCHECK ) ) { Log . d ( "test" , "in<seq2seq4repair_space>if" ) ; JsonArr = json . getJSONArray ( MainActivity . RESULT ) ; for ( int i = 0 ; i < ( JsonArr . length ( ) ) ; i ++ ) { JSONObject c = JsonArr . getJSONObject ( i ) ; gMain . userPoint = c . getString ( MainActivity . POINT ) ; } return ; } JsonArr = json . getJSONArray ( MainActivity . RESULT ) ; String crop_type ; String crop_mod ; String crop_level ; String crop_effect ; int i_crop_type ; int i_crop_mod ; int i_crop_level ; int i_crop_effect ; for ( int i = 0 ; i < ( JsonArr . length ( ) ) ; i ++ ) { JSONObject c = JsonArr . getJSONObject ( i ) ; crop_type = c . getString ( MainActivity . TYPE ) ; crop_mod = c . getString ( MainActivity . MODULE ) ; crop_level = c . getString ( MainActivity . LEVEL ) ; crop_effect = c . getString ( "effect" ) ; <START_BUG> Log . d ( "test" , ( ( crop_mod + "'s<seq2seq4repair_space>effect:" ) + crop_effect ) ) ; <END_BUG> i_crop_type = Integer . parseInt ( crop_type ) ; i_crop_mod = Integer . parseInt ( crop_mod ) ; i_crop_level = Integer . parseInt ( crop_level ) ; i_crop_effect = Integer . parseInt ( crop_effect ) ; if ( ( i_crop_level > 0 ) && ( i_crop_level < 6 ) ) { gMain . crop_level [ i_crop_mod ] = i_crop_level ; gMain . crop_type [ i_crop_mod ] = i_crop_type ; gMain . crop_effect [ i_crop_mod ] = i_crop_effect ; gMain . crop_mod [ i_crop_mod ] = 1 ; } else if ( ( i_crop_level == 6 ) && ( i_crop_type == 1 ) ) { ( cabHarvestCount ) ++ ; gMain . cabHarvest = Integer . toString ( cabHarvestCount ) ; Log . d ( "test" , ( "cab<seq2seq4repair_space>harvest:<seq2seq4repair_space>" + ( gMain . cabHarvest ) ) ) ; } else if ( ( i_crop_level == 6 ) && ( i_crop_type == 2 ) ) { ( strawHarvestCount ) ++ ; gMain . strawHarvest = Integer . toString ( strawHarvestCount ) ; Log . d ( "test" , ( "straw<seq2seq4repair_space>harvest:<seq2seq4repair_space>" + ( gMain . strawHarvest ) ) ) ; } } gMain . update_flag = true ; } } catch ( JSONException e ) { e . printStackTrace ( ) ; } } } private class Register extends AsyncTask < String , String , JSONObject > { @ Override protected void onPreExecute ( ) { } @ Override protected JSONObject doInBackground ( String ... args ) { } @ Override protected void onPostExecute ( JSONObject json ) { try { if ( json != null ) { String res = json . getString ( "response" ) ; if ( res . equals ( "Successfully<seq2seq4repair_space>Registered" ) ) { Toast . makeText ( MainActivity . this , "Registered" , LENGTH_SHORT ) . show ( ) ; } else { Toast . makeText ( MainActivity . this , res , LENGTH_SHORT ) . show ( ) ; } SharedPreferences . Editor edit = prefs . edit ( ) ;

Fix:
Log . d ( "effect" , ( ( crop_mod + "'s<seq2seq4repair_space>effect:" ) + crop_effect ) ) ;