ReActiveAndroid icon indicating copy to clipboard operation
ReActiveAndroid copied to clipboard

Make sure the Cursor is initialized correctly before accessing data from it.

Open luongchautuan opened this issue 4 years ago • 0 comments

ReActiveAndroid Version:

Bug or Feature Request:

Description:

Hello everyone,

I got this error while switch ActiveAndroid lib to ReActiveAndroid lib.

Caused by: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

I used a query after init ReActiveAndroid : Select.from(Identity.class).where("current= ?", 1).fetchSingle();

so I have an db used ActiveAndroid before and now I got that error when i use ReActiveAndroid from exist database db.

I also updated model based on migration docs.

Any hint for me here?

Thanks

luongchautuan avatar Apr 23 '21 04:04 luongchautuan