title: Cursor.moveToFirst() and nullpointerexception
body: <p>My question is: Will <code>moveToFirst()</code> throw a <code>NullPointerException</code>?</p>
  
  <p>Should I use:</p>
  
  <pre><code>if (cursor != null) {
      if (cursor.moveToFirst()) {
          // TODO
      }
  }
  </code></pre>
  
  <p>or just:</p>
  
  <pre><code>if (cursor.moveToFirst()) {
      // TODO
  }
  </code></pre>