Skip to content

Handle location results without a location - #3890

Open
blihio wants to merge 1 commit into
microg:masterfrom
blihio:codex/guard-empty-location-result
Open

blihio wants to merge 1 commit into
microg:masterfrom
blihio:codex/guard-empty-location-result

Conversation

@blihio

@blihio blihio commented Oct 16, 2026 •

Copy link
Copy Markdown

Summary

A live location sharing callback can throw a NullPointerException when it receives a non-null LocationResult with no locations. LocationResult.getLastLocation() returns null for an empty result, but the callback reads the coordinates before checking whether a location is available.

Change

Return from the callback when lastLocation is null, before reading its coordinates. Results containing a location continue through the existing logging and upload flow.

Closes #3892

@blihio blihio closed this Oct 16, 2026
@blihio blihio changed the title Handle empty location results in live sharing Handle location results without a location Oct 17, 2026
@blihio blihio reopened this Oct 17, 2026
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.

Avoid a crash when a location result has no location

1 participant