Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. java.lang.IllegalStateException: Couldn't read row 4, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
  2.  
  3. while (c.moveToNext()) {
  4. SomeData someData = new SomeData();
  5. someData.setQuestion(c.getString(0)); //Exception is coming in this line
  6. someData.setOption1(c.getString(1));
  7. someData.setOption2(c.getString(2));
  8. someData.setOption3(c.getString(3));
  9. someData.setOption4(c.getString(4));
  10. someData.setAnswer(c.getString(5));
  11. outMap.put(c.getString(6), someData );
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement