Buggy code:
public class ClientActivity extends FragmentActivity implements ClientListFragment . OnItemSelectedListener { public static final String MY_NAME = "my_name" ; public static final String CLIENT_LIST = "client_list" ; public static final String EVENT = "event" ; public static final String EVENT_OPEN = "open" ; public static final String EVENT_MSG = "message" ; public static final String EVENT_CLOSE = "close" ; public static final String INFO = "info" ; public static final int ORIENTATION_PORTRAIT = 1 ; public static final int ORIENTATION_LANDSCAPE = 2 ; private int orientation = ClientActivity . ORIENTATION_PORTRAIT ; private final int AGREE_REQUEST = 1 ; private ClientListFragment clf ; private ChatFragment ctf ; private String myName ; private String [ ] clientArray ; private byte [ ] simKey ; private ConnectService mBoundService ; private BroadcastReceiver mReceiver ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void serviceConnect ( ) { } public void showMessage ( String message ) { } private void messageReceived ( String message ) { } private void startDownload ( String url ) { } public void send ( Sendable object ) { } @ Override public void onClientSelected ( String dest ) { } public void showFragment ( Fragment fragment ) { } @ Override protected void onSaveInstanceState ( Bundle outState ) { } @ Override public void onBackPressed ( ) { } private void fetchParams ( Intent intent ) { } private ServiceConnection mConnection = new ServiceConnection ( ) { public void onServiceConnected ( ComponentName className , IBinder service ) { } public void onServiceDisconnected ( ComponentName className ) { } } ; private void doBindService ( ) { } @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } private void doUnbindService ( ) { } public void handleJSON ( String action , JSONObject data ) throws JSONException { if ( action . equals ( action ) ) { String in = data . getString ( nickname ) ; if ( ( ! ( in . equals ( "" ) ) ) && ( ! ( ArrayHandler . findInArray ( in , clientArray ) ) ) ) clientArray = ArrayHandler . addToArray ( clientArray , in ) ; clf . setClients ( clientArray ) ; if ( ( clientArray . length ) == 0 ) <START_BUG> showMessage ( "Client<seq2seq4repair_space>list<seq2seq4repair_space>is<seq2seq4repair_space>empty" ) ; <END_BUG> } else if ( action . equals ( Configuration . SocketAction . Message . action ) ) { Message msg = new Message ( ) ; HashMap < String , Object > msgParams = new HashMap < > ( ) ; msgParams . put ( from , data . get ( from ) ) ; msgParams . put ( to , myName ) ; msgParams . put ( message , data . get ( message ) ) ; msg . create ( msgParams ) ; if ( ! ( ctf . receiveMsg ( msg ) ) ) showMessage ( ( ( ( getResources ( ) . getString ( wrong_abonent ) ) + "<seq2seq4repair_space>" ) + ( msg . getFrom ( ) ) ) ) ; } else if ( action . equals ( Configuration . SocketAction . GoOut . action ) ) { String out = data . getString ( Configuration . SocketAction . GoOut . ServerToClient . nickname ) ; if ( ArrayHandler . findInArray ( out , clientArray ) ) clientArray = ArrayHandler . removeFromArray ( clientArray , out ) ; clf . setClients ( clientArray ) ; if ( ( clientArray . length ) == 0 ) showMessage ( "Client<seq2seq4repair_space>list<seq2seq4repair_space>is<seq2seq4repair_space>empty" ) ; } else if ( action . equals ( Configuration . SocketAction . Download . action ) ) { Message msg = new Message ( ) ; HashMap < String , Object > msgParams = new HashMap < > ( ) ; msgParams . put ( Configuration . SocketAction . Download . ServerToClient . from , data . get ( Configuration . SocketAction . Download . ServerToClient . from ) ) ; msgParams . put ( to , myName ) ; msgParams . put ( message , data . get ( url ) ) ; msg . create ( msgParams ) ; ctf . receiveMsg ( msg ) ; startDownload ( msg . getText ( ) ) ; } else if ( action . equals ( Configuration . SocketAction . EncryptStart . action ) ) { simKey = data . get ( Configuration . SocketAction . EncryptStart . ServerToClient . simKey ) . toString ( ) . getBytes ( ) ; } } public void handleXML ( String message ) { } }

Fix:
showMessage ( getResources ( ) . getString ( empty_client_list ) ) ;