Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/remove resource leaks #121

Merged
merged 3 commits into from
Dec 9, 2024
Merged

Fix/remove resource leaks #121

merged 3 commits into from
Dec 9, 2024

Conversation

Sergey-Makarov
Copy link
Contributor

No description provided.

Previously, `cursor.getString(1)` could return `null`, which then led to
`NullPointerException` and the cursor not being closed.

The new code always returns the same value as the old one + ensures that the
cursor is closed properly.
Tested on a few emulators - no crashes so far.
@Sergey-Makarov Sergey-Makarov force-pushed the fix/remove-resource-leaks branch from edb0ae8 to 76e3c21 Compare December 9, 2024 09:26
Base automatically changed from misc/project-update to main December 9, 2024 10:17
@Sergey-Makarov Sergey-Makarov merged commit 736c42f into main Dec 9, 2024
1 check passed
@Sergey-Makarov Sergey-Makarov deleted the fix/remove-resource-leaks branch December 9, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants