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

NullPointerException in ActivityBreadcrumbCollector when accessing Intent extras #2082

Closed
narayan07feb opened this issue Sep 30, 2024 · 2 comments · Fixed by #2083
Closed
Assignees
Labels
bug Confirmed bug released This feature/bug fix has been released

Comments

@narayan07feb
Copy link

Describe the bug

A NullPointerException occurs in the Bugsnag library when accessing the Intent extras inside the ActivityBreadcrumbCollector.setActivityIntentMetadata method. The issue arises when the Intent passed to the Activity does not contain extras, leading to a crash while trying to retrieve them.

Steps to reproduce

Unable to reproduce as this issue is only occurring in the production build. The crash seems to happen in certain user environments, but we haven't been able to replicate it during testing.

Environment

  • Android version: 6.0.0 to 8.0.0 as per report
  • Bugsnag version: 6.7.0
  • Emulator or physical device: Physical device
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.Parcel.dataSize()' on a null object reference
    at android.os.BaseBundle.<init>(BaseBundle.java:126)
    at android.os.Bundle.<init>(Bundle.java:102)
    at android.content.Intent.getExtras(Intent.java:5694)
    at com.bugsnag.android.ActivityBreadcrumbCollector.setActivityIntentMetadata(ActivityBreadcrumbCollector:82)
    at com.bugsnag.android.ActivityBreadcrumbCollector.onActivityCreated(ActivityBreadcrumbCollector:22)
@lemnik lemnik self-assigned this Sep 30, 2024
@lemnik lemnik added the bug Confirmed bug label Sep 30, 2024
@clr182
Copy link

clr182 commented Sep 30, 2024

Hi @narayan07feb

Thank you for reaching out and raising this issue. We are looking to implement a fix ASAP and will be sure to update this thread once the release is Live.

@narayan07feb
Copy link
Author

Thanks @lemnik and @clr182, I just wanted to know when you are planning to release a new version ?

@lemnik lemnik mentioned this issue Sep 30, 2024
@hannah-smartbear hannah-smartbear added the released This feature/bug fix has been released label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug released This feature/bug fix has been released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants