In my android app I'm creating a Socket and a BufferedReader. If i just read one line of the BufferedReader I'm getting the response from the server. But if I'm trying it with `while((message = br.readLine()) != null)` The application crashes. Any ideas what could be the problem?

### Code

```
public void connecting(String uid) {
    uuid = uid;
    try {
        client = new Socket("127.0.0.1", 8234);
        try {
            tv = (TextView) chat.findViewById(R.id.textView);
            pw = new PrintWriter(client.getOutputStream());
            br = new BufferedReader(new InputStreamReader(client.getInputStream()));
            new Thread(new Runnable() {
                @Override
                public void run() {
                    try {
                        // If i just try this, it works
                        tv.append("\n"+br.readLine());

                        // If I'm trying this, it crashes
                        String message = "";
                        while((message = br.readLine()) != null) {
                            tv.append("\n"+message);
                        }
                    } catch (IOException e) {
                        tv.append(e.getMessage());
                    }
                }
            }).start();
            tv.append("Connected!");
            pw.println(uuid+":B31TR1TT");
            pw.flush();
        } catch (IOException e) {
            tv.append(e.getMessage());
        }
    } catch (IOException e) {
        tv.append(e.getMessage());
    }
}

```