-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
NPE crash in SenderService.onHandleIntent due to null Intent #500
Comments
Thanks Mark. I have merged @F43nd1r 's changes which fix this. Your beard has grown much thicker since Google IO 2012. |
Great, thanks for the heads up @william-ferguson-au. Small world, isn't it? 😉 |
By the way, what is the ACRA project's policy on RC builds? Just curious as to when we can start using this change, as it's currently our app's highest crash rate. |
I think as almost all changes since the last release were made by me and I test everything individually before proposing PRs, the master should be pretty stable. @william-ferguson-au I think we could aim for a release of 4.9.1 within the next month. I'd like to see #495 and #510 in there. It also should include either #502 or #487 and #488 as an intermediate solution. |
After updating ACRA to 4.9.0, we started seeing these crash traces showing up:
We're using the .aar to include the ACRA lib.
Taking a look at SenderService.onHandleIntent(Intent), it has the Intent parameter annotated as
@NonNull
but the IntentService that SenderService is extending has this parameter marked as@Nullable
.See source for IntentService.onHandleIntent(Intent).
It states that the intent passed in can occasionally be null when the service is being restarted. In this case I guess just a null check and return in
SenderService.onHandleIntent
would resolve the bug. Upon service restart I'm guessing the intent will then be non-null and the report can be sent. I can submit a PR if this is the direction you want to take.The text was updated successfully, but these errors were encountered: