indexOutOfBounds when resuming activity
<p>I am using this to populate some fields from a database.</p>

<pre><code>private void populateField() {

if(mRowId != null ){

    Cursor Message = mDbHelper.fetchScheduledTask(mRowId);
    startManagingCursor(Message);
    Log.e("ROWID", mRowId.toString());
    String commaText = (Message.getString(Message.getColumnIndexOrThrow(SmsDbAdapter.KEY_NUMBERS)));
    numbers.setText(commaText);
</code></pre>

<p>When the activity is paused then resumed i get the error </p>

<pre><code>10-17 11:15:13.123: ERROR/AndroidRuntime(15432): Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
</code></pre>

<p>It points to this line of code.</p>

<pre><code>String commaText = (Message.getString(TextMessage.getColumnIndexOrThrow(SmsDbAdapter.KEY_NUMBERS)));
</code></pre>

<p>How can i get rid or be defensive against this error.</p>
