Buggy code:
private final int requestStatus ; private final String description ; Status ( int requestStatus , String description ) { } public int getRequestStatus ( ) { } public String getDescription ( ) { } } } public static final class ResponseException extends Exception { private final NanoHTTPD . Response . Status status ; public ResponseException ( NanoHTTPD . Response . Status status , String message ) { } public ResponseException ( NanoHTTPD . Response . Status status , String message , Exception e ) { } public NanoHTTPD . Response . Status getStatus ( ) { } } private class DefaultTempFileManagerFactory implements NanoHTTPD . TempFileManagerFactory { @ Override public NanoHTTPD . TempFileManager create ( ) { } } public interface IHTTPSession { void execute ( ) throws IOException { } Map < String , String > getParms ( ) { } Map < String , String > getHeaders ( ) { } String getUri ( ) { } String getQueryParameterString ( ) { } NanoHTTPD . Method getMethod ( ) { } InputStream getInputStream ( ) { } NanoHTTPD . CookieHandler getCookies ( ) { } void parseBody ( Map < String , String > files ) throws NanoHTTPD . ResponseException , IOException { } } protected class HTTPSession implements NanoHTTPD . IHTTPSession { public static final int BUFSIZE = 8192 ; private final NanoHTTPD . TempFileManager tempFileManager ; private final OutputStream outputStream ; private PushbackInputStream inputStream ; private int splitbyte ; private int rlen ; private String uri ; private NanoHTTPD . Method method ; private Map < String , String > parms ; private Map < String , String > headers ; private NanoHTTPD . CookieHandler cookies ; private String queryParameterString ; public HTTPSession ( NanoHTTPD . TempFileManager tempFileManager , InputStream inputStream , OutputStream outputStream ) { } public HTTPSession ( NanoHTTPD . TempFileManager tempFileManager , InputStream inputStream , OutputStream outputStream , InetAddress inetAddress ) { } @ Override public void execute ( ) throws IOException { } @ Override public void parseBody ( Map < String , String > files ) throws NanoHTTPD . ResponseException , IOException { } private void decodeHeader ( BufferedReader in , Map < String , String > pre , Map < String , String > parms , Map < String , String > headers ) throws NanoHTTPD . ResponseException { } private void decodeMultipartData ( String boundary , ByteBuffer fbuf , BufferedReader in , Map < String , String > parms , Map < String , String > files ) throws NanoHTTPD . ResponseException { } private int findHeaderEnd ( final byte [ ] buf , int rlen ) { } private int [ ] getBoundaryPositions ( ByteBuffer b , byte [ ] boundary ) { } private String saveTmpFile ( ByteBuffer b , int offset , int len ) { } private RandomAccessFile getTmpBucket ( ) { } private int stripMultipartHeaders ( ByteBuffer b , int offset ) { } private void decodeParms ( String parms , Map < String , String > p ) { } @ Override public final Map < String , String > getParms ( ) { } public String getQueryParameterString ( ) { } @ Override public final Map < String , String > getHeaders ( ) { } @ Override public final String getUri ( ) { } @ Override public final NanoHTTPD . Method getMethod ( ) { } @ Override public final InputStream getInputStream ( ) { } @ Override public NanoHTTPD . CookieHandler getCookies ( ) { } } public static class Cookie { private String n ; private String v ; private String e ; private String p ; public Cookie ( String name , String value , String expires , String path ) { } public Cookie ( String name , String value ) { } public static NanoHTTPD . Cookie sessionCookie ( String name , String value ) { } public static NanoHTTPD . Cookie sessionCookie ( String name , String value , String path ) { } public Cookie ( String name , String value , int numDays ) { } public String getHTTPHeader ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( n ) . append ( "=" ) . append ( v ) . append ( ";<seq2seq4repair_space>" ) ; if ( ( e ) != null ) { sb . append ( "expires=" ) . append ( e ) ; } if ( ( p ) != null ) { <START_BUG> sb . append ( "path=" ) . append ( e ) ; <END_BUG> } return sb . toString ( ) ; } public static String getHTTPTime ( int days ) { } } public class CookieHandler implements Iterable < String > { private HashMap < String , String > cookies = new HashMap < String , String > ( ) ; private ArrayList < NanoHTTPD . Cookie > queue = new ArrayList < NanoHTTPD . Cookie > ( ) ; public CookieHandler ( Map < String , String > httpHeaders ) { } @ Override public Iterator < String > iterator ( ) { } public String read ( String name ) { } public void set ( String name , String value , int expires ) { } public void set ( NanoHTTPD . Cookie cookie ) { } public void delete ( String name ) { } public void unloadQueue ( NanoHTTPD . Response response ) { } } }

Fix:
sb . append ( "path=" ) . append ( p ) ;