Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Conversation

@sunkup
Copy link
Member

@sunkup sunkup commented May 13, 2025

Reason

Getting Error: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 at

if (!cursor.isNull(0)) // Events.STATUS != null

Changes

@sunkup sunkup self-assigned this May 13, 2025
@sunkup sunkup added the bug Something isn't working label May 13, 2025
@sunkup sunkup requested a review from Copilot May 13, 2025 07:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a crash caused by attempting to read from an empty cursor and improves the clarity and robustness of the cursor-handling and organizer assignment logic.

  • Improved cursor reading by checking moveToNext() and using getColumnIndexOrThrow.
  • Removed a redundant condition for the organizer and updated catch clause syntax.
  • Applied minor linting updates.

@sunkup sunkup requested a review from ArnyminerZ May 13, 2025 07:28
@sunkup sunkup marked this pull request as ready for review May 13, 2025 07:28
@sunkup sunkup requested a review from ArnyminerZ May 13, 2025 09:02
@rfc2822 rfc2822 merged commit 240f756 into main May 13, 2025
7 checks passed
@rfc2822 rfc2822 deleted the 202-error-androiddatabasecursorindexoutofboundsexception-index-0-requested-with-a-size-of-0 branch May 13, 2025 13:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

3 participants