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 crash when receiving call from a private number #114

Merged
merged 2 commits into from
Aug 4, 2022
Merged

Conversation

chenxiaolong
Copy link
Owner

When receiving a call from a private number, the Call.Details instance provided by Android has a null Uri for the handle. This isn't documented in the Android SDK.

This commit fixes the issue by adding a null check and also changes the error handling so that early failures (during creation of RecorderThread) will still result in an error notification being shown.

Fixes: #111

@chenxiaolong chenxiaolong self-assigned this Aug 4, 2022
@chenxiaolong chenxiaolong merged commit 058d402 into master Aug 4, 2022
@chenxiaolong chenxiaolong deleted the private branch August 4, 2022 22:04
chenxiaolong added a commit that referenced this pull request Aug 4, 2022
Signed-off-by: Andrew Gunnerson <[email protected]>
chenxiaolong added a commit that referenced this pull request Aug 5, 2022
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.

Doesn't record when number withheld
1 participant