Buggy code:
public class ThreadWorker extends Thread { public ThreadWorker ( ) { } public static void clearWork ( ) { } private static LinkedBlockingQueue < Work > workQueue = new LinkedBlockingQueue < Work > ( ) ; public static void addWork ( Socket s , DataInputStream in , DataOutputStream out , boolean ssl ) { } public static void readdWork ( Work work ) { } private boolean keepRunning = true ; public void close ( ) { } public static final ArrayList < ThreadStreamWorker > subworkers = new ArrayList < ThreadStreamWorker > ( ) ; public void run ( ) { while ( keepRunning ) { Work focus = ThreadWorker . workQueue . poll ( ) ; if ( focus == null ) { try { Thread . sleep ( 10L ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } continue ; } try { if ( ! ( focus . s . isClosed ( ) ) ) { RequestPacket incomingRequest = RequestPacket . read ( focus . in ) ; long benchStart = System . nanoTime ( ) ; if ( incomingRequest == null ) { focus . s . close ( ) ; continue ; } incomingRequest . ssl = focus . ssl ; focus . tos = 0 ; incomingRequest . userIP = focus . s . getInetAddress ( ) . getHostAddress ( ) ; incomingRequest . userPort = focus . s . getPort ( ) ; long set = System . nanoTime ( ) ; ResponsePacket outgoingResponse = new ResponsePacket ( ) ; outgoingResponse . request = incomingRequest ; patchBus . processPacket ( incomingRequest ) ; long proc1 = System . nanoTime ( ) ; boolean cont = rg . process ( incomingRequest , outgoingResponse ) ; long resp = System . nanoTime ( ) ; if ( cont ) patchBus . processPacket ( outgoingResponse ) ; long proc2 = System . nanoTime ( ) ; ResponsePacket wrp = outgoingResponse . write ( focus . out ) ; boolean t = wrp . reqTransfer ; long write = System . nanoTime ( ) ; if ( ( t && ( ( wrp . body ) != null ) ) && ( ( wrp . body . getBody ( ) ) != null ) ) { <START_BUG> ThreadStreamWorker sw = new ThreadStreamWorker ( focus , incomingRequest , outgoingResponse ) ; <END_BUG> ThreadWorker . subworkers . add ( sw ) ; sw . start ( ) ; } else { ThreadWorker . workQueue . add ( focus ) ; } long cur = System . nanoTime ( ) ; INSTANCE . log ( ( ( ( ( ( ( ( ( ( ( incomingRequest . userIP ) + "<seq2seq4repair_space>requested<seq2seq4repair_space>" ) + ( incomingRequest . target ) ) + "<seq2seq4repair_space>returned<seq2seq4repair_space>" ) + ( wrp . statusCode ) ) + "<seq2seq4repair_space>" ) + ( wrp . reasonPhrase ) ) + "<seq2seq4repair_space>took:<seq2seq4repair_space>" ) + ( ( cur - benchStart ) // 1000000.0 ) ) + "<seq2seq4repair_space>ms" ) ) ; } else { INSTANCE . log ( ( ( focus . s . getInetAddress ( ) . getHostAddress ( ) ) + "<seq2seq4repair_space>closed." ) ) ; } } catch ( SocketTimeoutException e ) { ( focus . tos ) ++ ; if ( ( focus . tos ) < 10 ) { ThreadWorker . workQueue . add ( focus ) ; } else { try { focus . s . close ( ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } INSTANCE . log ( ( ( focus . s . getInetAddress ( ) . getHostAddress ( ) ) + "<seq2seq4repair_space>closed." ) ) ; } } catch ( IOException e ) { if ( ! ( e instanceof SocketException ) ) e . printStackTrace ( ) ; INSTANCE . log ( ( ( focus . s . getInetAddress ( ) . getHostAddress ( ) ) + "<seq2seq4repair_space>closed." ) ) ; } } } }

Fix:
ThreadStreamWorker sw = new ThreadStreamWorker ( focus , incomingRequest , wrp ) ;