title: String Array Equated to a Cursor.getstring() gives me NullPointer Exception
body: <p>This is my code from my android project where i would want to store each string element from the cursor to a string array, but i keep getting <code>NullPointer</code> Exception.</p>
  
  <p>The Code is Down Below, <code>series2Strings[]</code> is the string array i have defined, </p>
  
  <pre><code>int k=0;
          if(cur.moveToFirst()){
              while(!cur.isAfterLast()){
  
                  Log.i("String", " "+ k + " " + cur.getString(1));
                  series2Strings[k]=cur.getString(1);
                  k++;
                  cur.moveToNext();
              }
          }
  
  
          cur.close();
  </code></pre>
  
  <p>The data is available at the cursor because i have checked it in the logcat by using the log statement. Can anyone please point what's going wrong.</p>