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

android: handle null query results in ShareActivity #567

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

kari-ts
Copy link
Collaborator

@kari-ts kari-ts commented Nov 19, 2024

If contentResolver.query returns null, or the URI is invalid, skip processing and log instead of crashing. Also, use 'use' for the cursor instead of 'let' to automatically close the cursor after processing.

Fixes tailscale/corp#24293

If contentResolver.query returns null, or the URI is invalid, skip processing and log instead of crashing.
Also, use 'use' for the cursor instead of 'let' to automatically close the cursor after processing.

Fixes tailscale/corp#24293

Signed-off-by: kari-ts <[email protected]>
@kari-ts kari-ts merged commit 788bb1d into main Nov 21, 2024
4 checks passed
@kari-ts kari-ts deleted the kari/sharecrash branch November 21, 2024 17:12
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.

3 participants