java.lang.IllegalStateException: Could not execute method for android:onClick

Stack Overflow | Ved Sarkar | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 9 months ago | Ved Sarkar
    java.lang.IllegalStateException: Could not execute method for android:onClick
  2. 0

    SQLite keeps returning error from CursorWindow (failed to read row)

    Stack Overflow | 2 years 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

    Android SQLite throws Failed to read row 0, column -1 from a CursorWindow

    Stack Overflow | 2 years ago | Marco Reisacher
    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

    Error: Unused Import Statement - import android.widget.AdapterView.OnItemClickListener; & import android.content.Context;

    Stack Overflow | 2 years ago | Arjun Bajpai
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.carsaleindiaofficial.csitestapp/com.carsaleindiaofficial.csitestapp.BookmarkPage}: 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

    java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow

    Stack Overflow | 1 year ago | Bedrock Dev
    java.lang.RuntimeException: Unable to start receiver com.bedrock.live.service.WiFiService: 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
    AbstractWindowedCursor.getString
    1. android.database.CursorWindow.nativeGetString(Native Method)
    2. android.database.CursorWindow.getString(CursorWindow.java:438)
    3. android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
    3 frames
  3. listy.naive.com
    Dialog.Add_task
    1. listy.naive.com.listy.MainActivity.updateUI(MainActivity.java:102)
    2. listy.naive.com.listy.Dialog.Add_task(Dialog.java:58)
    2 frames
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  5. Android v7
    AppCompatViewInflater$DeclaredOnClickListener.onClick
    1. android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:284)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5198)
    2. android.view.View$PerformClick.run(View.java:21147)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:148)
    6. android.app.ActivityThread.main(ActivityThread.java:5417)
    6 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames