NullPointerException found in SocketStream.java