title: Android application crashes when trying to get string length
body: <p>Those who invented Android and Java didn't invented for themselves. Since I started developing application with Java in Android I get the most ridiculous errors and I am really going crazy (and if I do, Google and Sun Microsystems will make "booooom")</p>
  
  <p>I have this simple code that is supposed to get the length of a string passed as an argument. The application just crashes, making me spend some minutes swearing and torturing the keyboard.</p>
  
  <p>My code:</p>
  
  <pre><code>@Override
  protected void onPostExecute(String result) {
      if (result.length() == 0) {
          txtStatus.setText("Ready");
      }
  }
  </code></pre>
  
  <p>If I remove the condition it works (the text "Ready" is shown on my TextView). This is something weird and I know that I might be missing some little something.</p>
  
  <p>Give me some clues and thanks for everything!</p>
  
  <p><em>P.S. If you hear a gun shoot coming from your neighbor it might be me.</em></p>