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 ) { } @ 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 { 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" ) ; 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 ; } 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" ) ; <START_BUG> if ( res . equals ( "로딩<seq2seq4repair_space>완료" ) ) { <END_BUG> Toast . makeText ( MainActivity . this , "Registered" , LENGTH_SHORT ) . show ( ) ; } else { Toast . makeText ( MainActivity . this , res , LENGTH_SHORT ) . show ( ) ; } SharedPreferences . Editor edit = prefs . edit ( ) ; edit . putString ( "REG_FROM" , prefs . getString ( SPF_ID , "" ) ) ; edit . putString ( "FROM_NAME" , prefs . getString ( SPF_ID , "" ) ) ; edit . commit ( ) ; } else Toast . makeText ( MainActivity . this , "JSON<seq2seq4repair_space>NULL<seq2seq4repair_space>in<seq2seq4repair_space>ChatActivity,<seq2seq4repair_space>Register<seq2seq4repair_space>" , LENGTH_SHORT ) . show ( ) ; } catch ( Exception e ) { } } } public void initPopup ( ) { } }

Fix:
if ( res . equals ( "Successfully<seq2seq4repair_space>Registered" ) ) {