Skip to content

CloudMessagingReceiver.zza PendingResult.finish() on a null object reference #5553

Closed

Description

@jiduqingqian

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Giraffe | 2022.3.1 Patch 3
  • Firebase Component: CloudMessage
  • Component version:
com.google.firebase:firebase-bom:31.1.1
com.google.firebase:firebase-messaging:23.0.0
com.google.firebase:firebase-iid:21.1.0
com.google.firebase:firebase-core:18.0.0

[REQUIRED] Step 3: Describe the problem

We have a significant number of crash reports in crashlytics with this obfuscated stack trace:

Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.BroadcastReceiver$PendingResult.finish()' on a null object reference
       at com.google.android.gms.cloudmessaging.CloudMessagingReceiver.zza(com.google.android.gms:play-services-cloud-messaging@@17.0.0:6)
       at com.google.android.gms.cloudmessaging.zze.run(com.google.android.gms:play-services-cloud-messaging@@17.0.0:10)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
       at com.google.android.gms.common.util.concurrent.zza.run(com.google.android.gms:play-services-basement@@18.1.0:2)
       at java.lang.Thread.run(Thread.java:1012)
image

This is currently by far our largest open crash cluster
I'm happy to provide any additional data that might help here.

Steps to reproduce:

We don't have a local repro for this issue, but it's certainly affecting people in the wild.

Relevant Code:

The error stack does not point to our relevant code

Activity

  1. google-oss-bot commented on Nov 14, 2023

    @google-oss-bot
    Collaborator

    I found a few problems with this issue:

    • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
    • This issue does not seem to follow the issue template. Make sure you provide all the required information.
  2. LeDaVinci commented on Nov 21, 2023

    @LeDaVinci

    any update?

  3. argzdev commented on Nov 21, 2023

    @argzdev
    Contributor

    Hi @jiduqingqian, it looks like the version you're using for com.google.firebase:firebase-messaging:23.0.0 is relatively old (October 29, 2021). Could you try using the latest version 23.3.1 and see if this fixes the issue? We usually advise this to avoid issues that may have been fixed in the past.

    If this does not help, could you provide a full stacktrace of this issue? Also could you share any code snippets that are related to Firebase Cloud Messaging? This will help us investigate this further.

    Thanks!

  4. google-oss-bot commented on Nov 28, 2023

    @google-oss-bot
    Collaborator

    Hey @jiduqingqian. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

    If you have more information that will help us get to the bottom of this, just add a comment!

  5. google-oss-bot commented on Dec 5, 2023

    @google-oss-bot
    Collaborator

    Since there haven't been any recent updates here, I am going to close this issue.

    @jiduqingqian if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

  6. locked and limited conversation to collaborators on Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions