java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bignerdranch.android.runtracker/com.bignerdranch.android.runtracker.RunActivity}: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

bignerdranch.com | 3 months ago
  1. 0

    getColumnIndex is returning -1 even though column exist - 34. Local Databases with SQLite - Big Nerd Ranch Books Forums

    bignerdranch.com | 3 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bignerdranch.android.runtracker/com.bignerdranch.android.runtracker.RunActivity}: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
  2. 0

    Big Nerd Ranch Books • View topic - getColumnIndex is returning -1 even though column exist

    bignerdranch.com | 1 year 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.
  3. 0

    Taking the image from sd card

    Stack Overflow | 3 years ago | jiten
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:30713 flg=0x1 }} to activity {com.app.postevery/com.app.postevery.PostEvery}: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Couldn't read row 0, col -1 from Cursor Window when quering from uri in Android

    Stack Overflow | 2 years ago | kodw
    java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
  6. 0

    Get a number from your contact list

    Stack Overflow | 2 years ago | Fernando
    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 -1 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:434)
    3. android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
    4. android.database.CursorWrapper.getString(CursorWrapper.java:114)
    4 frames
  3. com.bignerdranch.android
    RunFragment.onCreate
    1. com.bignerdranch.android.runtracker.RunDatabaseHelper$LocationCursor.getLocation(RunDatabaseHelper.java:153)
    2. com.bignerdranch.android.runtracker.RunManager.getLastLocationForRun(RunManager.java:131)
    3. com.bignerdranch.android.runtracker.RunFragment.onCreate(RunFragment.java:89)
    3 frames
  4. Android Support v4
    FragmentActivity.onStart
    1. android.support.v4.app.Fragment.performCreate(Fragment.java:1477)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:893)
    3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
    4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
    5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467)
    6. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:570)
    6 frames
  5. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1163)
    2. android.app.Activity.performStart(Activity.java:5018)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2032)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    5. android.app.ActivityThread.access$600(ActivityThread.java:130)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:137)
    9. android.app.ActivityThread.main(ActivityThread.java:4745)
    9 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    2 frames
  8. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame