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

GitHub | gdriskell | 2 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

    GitHub comment 1988#271770230

    GitHub | 2 months ago | gdriskell
    java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
  2. 0

    Crash: OOM during migration

    GitHub | 2 months ago | cketti
    java.lang.OutOfMemoryError: Failed to allocate a 2060 byte allocation with 1974 free bytes and 1974B until OOM
  3. 0

    GitHub comment 1557#261793695

    GitHub | 3 months ago | philipwhiuk
    java.lang.Error: Exception while upgrading database
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NPE in migration if textContent is null for a text/plain mail

    GitHub | 11 months ago | Valodim
    java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference
  6. 0

    Crash: NPE in LocalStore.getRawAttachmentInputStream()

    GitHub | 2 months ago | cketti
    java.lang.NullPointerException: Attempt to get length of null array

  1. jk 1 times, last 8 months ago
3 unregistered visitors
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 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

    at android.database.CursorWindow.nativeGetLong()
  2. Android Platform
    AbstractWindowedCursor.getLong
    1. android.database.CursorWindow.nativeGetLong(Native Method)
    2. android.database.CursorWindow.getLong(CursorWindow.java:524)
    3. android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75)
    3 frames
  3. com.fsck.k9
    CoreService$1.run
    1. com.fsck.k9.mailstore.migrations.MigrationTo51.db51MigrateMessageFormat(MigrationTo51.java:79)
    2. com.fsck.k9.mailstore.migrations.Migrations.upgradeDatabase(Migrations.java:58)
    3. com.fsck.k9.mailstore.StoreSchemaDefinition.upgradeDatabase(StoreSchemaDefinition.java:60)
    4. com.fsck.k9.mailstore.StoreSchemaDefinition.doDbUpgrade(StoreSchemaDefinition.java:36)
    5. com.fsck.k9.mailstore.LockableDatabase.openOrCreateDataspace(LockableDatabase.java:381)
    6. com.fsck.k9.mailstore.LockableDatabase.open(LockableDatabase.java:354)
    7. com.fsck.k9.mailstore.LocalStore.<init>(LocalStore.java:210)
    8. com.fsck.k9.mailstore.LocalStore.getInstance(LocalStore.java:235)
    9. com.fsck.k9.Account.getLocalStore(Account.java:1278)
    10. com.fsck.k9.controller.MessagingController.setupPushing(MessagingController.java:4322)
    11. com.fsck.k9.service.MailService.setupPushers(MailService.java:349)
    12. com.fsck.k9.service.MailService.reschedulePushers(MailService.java:338)
    13. com.fsck.k9.service.MailService.access$100(MailService.java:24)
    14. com.fsck.k9.service.MailService$1.run(MailService.java:194)
    15. com.fsck.k9.service.CoreService$1.run(CoreService.java:315)
    15 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames