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

[Activity Recognition] Fix NullPointerException in the Android plugin #1141

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DrumRobot
Copy link

Changes

Why?

These changes address crashes that occur due to null references in Android's activity recognition service, improving stability and preventing unexpected app terminations.

Let me know if any modifications are needed! 🚀

…achet#449)

- Added null check before calling `eventSink.success(result)`
- Fixes intermittent crashes when reloading the app
- Resolves cph-cachet#449
…-cachet#580)

- Added null checks for `ActivityRecognitionResult`, `getProbableActivities()`, and `SharedPreferences`
- Prevents potential NullPointerException in `onHandleIntent`
- Resolves cph-cachet#488, cph-cachet#580
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.

1 participant