how to prevent arrayindexoutofbound exception even ther no data? [sqlite android]
<p>first i create data only.
second i no add any data to keep table empty
then i call this comment</p>

<pre><code>Cursor cursor = sqlite.fetchdata(2, DatabaseHelper.TABLE_COMMENT);
String getcontent = cursor.getString(0);
</code></pre>

<p>it sure that will gave me exception.</p>

<p>so my question is how to get the string even there is empty table also? because my application by default is empty.</p>
