title: Java/Android - Getting socket output stream breaks execution with no exception launched
body: <p>I'm debugging the thread which manages a socket and I noticed that when I call getOutputStream() the debug breaks with no exception thrown. I've even added breakpoints to the very Socket.getOutputStream() but there is no way to get what's wrong.
  The Java server correctly accepts the connection and waits for input (by checking inputStream.available()).
  Both Socket and ServerSocket come from SSLSocketFactory and SSLServerSocketFactory.</p>
  
  <p>I'm using Android Studio.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>edit: I've even tried to change structure from Thread to AsyncTask but the result is the same. This is frustrating.</p>