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