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

GitHub | robert2206 | 5 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    Crash app when create a new customer with photo in the example app

    GitHub | 5 months ago | robert2206
    java.lang.IllegalStateException: Couldn't read row 0, col 18 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
  2. 0
    samebug tip
    You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.
    via GitHub by forouher
  3. 0
    samebug tip
    The cursor might not be initalized.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID
  6. 0

    안드로이드사이드

    androidside.com | 11 months ago
    java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Android Platform
    CursorWrapper.getString
    1. android.database.CursorWindow.nativeGetString(Native Method)
    2. android.database.CursorWindow.getString(CursorWindow.java:451)
    3. android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
    4. android.database.CursorWrapper.getString(CursorWrapper.java:137)
    4 frames
  3. com.odoo.core
    OCursorListAdapter.notifyDataSetChanged
    1. com.odoo.core.support.list.OCursorListAdapter.notifyDataSetChanged(OCursorListAdapter.java:196)
    1 frame
  4. Android Platform
    CursorAdapter.changeCursor
    1. android.widget.CursorAdapter.swapCursor(CursorAdapter.java:381)
    2. android.widget.CursorAdapter.changeCursor(CursorAdapter.java:349)
    2 frames
  5. com.odoo.addons
    Customers.onLoadFinished
    1. com.odoo.addons.customers.Customers.onLoadFinished(Customers.java:148)
    2. com.odoo.addons.customers.Customers.onLoadFinished(Customers.java:58)
    2 frames
  6. Android Support v4
    ModernAsyncTask$InternalHandler.handleMessage
    1. android.support.v4.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:479)
    2. android.support.v4.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:447)
    3. android.support.v4.content.Loader.deliverResult(Loader.java:126)
    4. android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:105)
    5. android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:37)
    6. android.support.v4.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:249)
    7. android.support.v4.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:77)
    8. android.support.v4.content.ModernAsyncTask.finish(ModernAsyncTask.java:466)
    9. android.support.v4.content.ModernAsyncTask.access$400(ModernAsyncTask.java:48)
    10. android.support.v4.content.ModernAsyncTask$InternalHandler.handleMessage(ModernAsyncTask.java:483)
    10 frames
  7. Android Platform
    ActivityThread.main
    1. android.os.Handler.dispatchMessage(Handler.java:102)
    2. android.os.Looper.loop(Looper.java:158)
    3. android.app.ActivityThread.main(ActivityThread.java:7229)
    3 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames