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 | 3 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 1988#271770230

    GitHub | 3 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 | 4 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 | 5 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 | 1 year 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 | 4 months ago | cketti
    java.lang.NullPointerException: Attempt to get length of null array

  1. jk 1 times, last 10 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