Couldn’t read Row 0, col 0 from Cursorwindow. Make sure the Cursor is initialized correctly before accessing data from it

Asked

Viewed 415 times

0

I’m doing the following query on android using Ormlite:

List<Mensagem> msgs = SqliteOrm.getMensagemDao(this).queryForAll();

but I’m getting the error below:

Couldn't read row 0, col 0 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.

Someone’s been through it?

1 answer

0

the error says make sure that your cursor class is properly initialized before accessing the data...

probably Voce is trying to initialize the direct row/column of the cursor, only the cursor has no row/column. recommend to look at the return value of your cursor and check if the return value is returning to a possible value

as it may be something else would be good by either logCat or the rest of the code to help, as sometimes the same error may occur due to data overload, or the lack of it

Browser other questions tagged

You are not signed in. Login or sign up in order to post.