java.lang.IllegalStateException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

The cursor might not be initalized.


rafael
tip

You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.

tip

In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 안드로이드사이드
    via by Unknown author,
  • GPX Freeze/crash
    via GitHub by vshcherb
    ,
  • Cursors, SQLite, and queries
    via Stack Overflow by atamakosi
    ,
    • java.lang.IllegalStateException: Couldn't read row 0, col 18 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. at android.database.CursorWindow.nativeGetString(Native Method) at android.database.CursorWindow.getString(CursorWindow.java:451) at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51) at android.database.CursorWrapper.getString(CursorWrapper.java:137) at com.odoo.core.support.list.OCursorListAdapter.notifyDataSetChanged(OCursorListAdapter.java:196) at android.widget.CursorAdapter.swapCursor(CursorAdapter.java:381) at android.widget.CursorAdapter.changeCursor(CursorAdapter.java:349) at com.odoo.addons.customers.Customers.onLoadFinished(Customers.java:148) at com.odoo.addons.customers.Customers.onLoadFinished(Customers.java:58) at android.support.v4.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:479) at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:447) at android.support.v4.content.Loader.deliverResult(Loader.java:126) at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:105) at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:37) at android.support.v4.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:249) at android.support.v4.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:77) at android.support.v4.content.ModernAsyncTask.finish(ModernAsyncTask.java:466) at android.support.v4.content.ModernAsyncTask.access$400(ModernAsyncTask.java:48) at android.support.v4.content.ModernAsyncTask$InternalHandler.handleMessage(ModernAsyncTask.java:483) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7229) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    Users with the same issue

    rafael
    1 times, last one,
    maxxi
    36 times, last one,
    mukky
    4 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    65 more bugmates