title: Writing to log causes App to crash?
body: <p>I was going through following tutorial: <a href="http://www.dreamincode.net/forums/topic/190013-creating-simple-file-chooser/#viewSource" rel="nofollow">http://www.dreamincode.net/forums/topic/190013-creating-simple-file-chooser/#viewSource</a></p>
  
  <p>Inside the <code>FileChooser</code> class there is one exception beeing supressed, since there is nothing within the catch clause. So I decided to add following statement to the catch clause:            </p>
  
  <pre><code>Log.e(ACTIVITY_SERVICE, e.getCause().toString());
  </code></pre>
  
  <p>For some reason this always causes the app to crash (NullPointerException). When I don't do any logging, except for a a simple syso print, then I don't get any exception and the app does't crash either. Then it works fine. I'm new to the whole Android Framework and just want to understand why this is happening.</p>