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 NoSuchMethodError #98

Merged
merged 1 commit into from
Jul 15, 2021
Merged

Fix NoSuchMethodError #98

merged 1 commit into from
Jul 15, 2021

Conversation

kinnerapriyap
Copy link
Owner

Problem: getOrDefault was added in API level 24 which causes it to crash in lower api devices.
Solution: Use get instead of getOrDefault, default is null anyway

Closes #97

Ref to SO

@kinnerapriyap kinnerapriyap added the bug Something needs to be fixed label Jul 15, 2021
@kinnerapriyap kinnerapriyap self-assigned this Jul 15, 2021
@kinnerapriyap kinnerapriyap merged commit 2641069 into main Jul 15, 2021
@kinnerapriyap kinnerapriyap deleted the fix_get_or_default_error branch July 15, 2021 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something needs to be fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fatal Exception: java.lang.NoSuchMethodError: No interface method
1 participant