Buggy code:
public final class Client implements ISynchAsynchConnection { public static class Creator implements ISynchAsynchConnectionInstantiator { public ISynchAsynchConnection makeInstance ( ISynchAsynchConnectionEventHandler handler , Class [ ] clazzes , Object [ ] args ) throws ConnectionInstantiationException { try { Integer ka = new Integer ( 0 ) ; <START_BUG> if ( ( args . length ) > 0 ) { <END_BUG> ka = ( ( Integer ) ( args [ 0 ] ) ) ; } return new Client ( handler , ka ) ; } catch ( RuntimeException e ) { throw new ConnectionInstantiationException ( ( "Exception<seq2seq4repair_space>in<seq2seq4repair_space>creating<seq2seq4repair_space>connection<seq2seq4repair_space>" + ( Client . class . getName ( ) ) ) , e ) ; } } } public static final String PROTOCOL = "ecftcp" ; public static final Debug debug = Debug . create ( Client . class . getName ( ) ) ; public static final int SNDR_PRIORITY = Thread . NORM_PRIORITY ; public static final int RCVR_PRIORITY = Thread . NORM_PRIORITY ; public static final long CLOSE_TIMEOUT = 1500 ; public static final int DEF_MAX_MSG = 50 ; protected String address ; protected int port ; protected Socket socket ; protected ObjectOutputStream outputStream ; protected ObjectInputStream inputStream ; protected ISynchAsynchConnectionEventHandler handler ; protected SimpleQueueImpl queue = new SimpleQueueImpl ( ) ; protected int keepAlive = 0 ; protected Thread sendThread ; protected Thread rcvThread ; protected Thread keepAliveThread ; protected boolean isClosing = false ; protected boolean waitForPing = false ; protected PingMessage ping = new PingMessage ( ) ; protected PingResponseMessage pingResp = new PingResponseMessage ( ) ; protected long nextPingTime ; protected int maxMsg = Client . DEF_MAX_MSG ; protected long closeTimeout = Client . CLOSE_TIMEOUT ; protected Vector eventNotify = null ; protected Map properties ; public Map getProperties ( ) { } public void setProperties ( Map props ) { } public Client ( Socket aSocket , ObjectInputStream iStream , ObjectOutputStream oStream , ISynchAsynchConnectionEventHandler handler , int keepAlive ) throws IOException { } public Client ( Socket aSocket , ObjectInputStream iStream , ObjectOutputStream oStream , ISynchAsynchConnectionEventHandler handler , int keepAlive , int maxmsgs ) throws IOException { } public Client ( ISynchAsynchConnectionEventHandler handler , Integer keepAlive ) { } public Client ( ISynchAsynchConnectionEventHandler handler , int keepAlive ) { } public Client ( ISynchAsynchConnectionEventHandler handler , int keepAlive , int maxmsgs ) { } public synchronized ID getLocalID ( ) { } public synchronized void removeCommEventListener ( IConnectionEventHandler l ) { } public synchronized void addCommEventListener ( IConnectionEventHandler l ) { } public synchronized boolean isConnected ( ) { } public synchronized boolean isStarted ( ) { } protected void fireSuspect ( Exception e ) { } public synchronized Object connect ( ID remote , Object data , int timeout ) throws IOException { } private void setupThreads ( ) { } private Thread getSendThread ( ) { } private void closeSocket ( ) { } private void sendIt ( Serializable snd ) throws IOException { } private void receiveResp ( ) { } public void setCloseTimeout ( long t ) { } private void sendClose ( Serializable snd ) throws IOException { } private Thread getRcvThread ( ) { } private void handleRcv ( Serializable rcv ) throws IOException { } public synchronized void start ( ) { } public void stop ( ) { } private Thread setupPing ( ) { } public synchronized void disconnect ( ) throws IOException { } public void sendAsynch ( ID recipient , byte [ ] obj ) throws IOException { } public void sendAsynch ( ID recipien , Object obj ) throws IOException { } public synchronized void queueObject ( ID recipient , Serializable obj ) throws IOException { } public synchronized Serializable sendObject ( ID recipient , Serializable obj ) throws IOException { } public Object sendSynch ( ID rec , Object obj ) throws IOException { } public Object sendSynch ( ID rec , byte [ ] obj ) throws IOException { } private Serializable readObject ( ) throws IOException { } }

Fix:
if ( ( args != null ) && ( ( args . length ) > 0 ) ) {