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
NullPointerException when restarting the foreground service with a null intent #2298
Comments
Line 25 in 5e7d4ee
Should the null intent case be handled here? Or, would changing the foreground service start type to '
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting a
Fatal Exception: java.lang.RuntimeException: Unable to start service com.dexterous.flutterlocalnotifications.ForegroundService@d50aeda with null: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.Serializable android.content.Intent.getSerializableExtra(java.lang.String, java.lang.Class)' on a null object reference
t seems to happen when the app is in the background and the user taps on the foregroundservice notification. I'm not able to reproduce it myself, caught by Crashlytics.
Using the default: '
START_STICKY
', I would just need the tap on the foreground to open the app.Current implementation:
What am I missing here?
The text was updated successfully, but these errors were encountered: