Skip to content

Exception java.lang.NullPointerException crash com.sbugert.rnadmob.RNAdMobRewardedVideoAdModule$1.run #603

Description

@huseyintamer

Problem

Based on Play console crashes and ANR data, 2% of my users are having this issue.
This error occurs in the background 87.4% of the time.

I could not observe this error myself.

Looking forward to your help, thanks all.

Project Details

"react-native-admob": "^2.0.0-beta.6",
"react": "17.0.2",
"react-native": "0.66.3",

Crash logs:

com.sbugert.rnadmob.RNAdMobRewardedVideoAdModule$1.run

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  at com.google.android.gms.common.GooglePlayServicesUtilLight.isGooglePlayServicesAvailable (com.google.android.gms:play-services-basement@@18.0.0:5)
  at com.google.android.gms.common.GoogleApiAvailabilityLight.isGooglePlayServicesAvailable (com.google.android.gms:play-services-basement@@18.0.0:2)
  at com.google.android.gms.internal.ads.zzayd.zzf (com.google.android.gms:play-services-ads-lite@@19.6.0:67)
  at com.google.android.gms.internal.ads.zzwp.zzd (com.google.android.gms:play-services-ads-lite@@19.6.0:36)
  at com.google.android.gms.internal.ads.zzzj.getRewardedVideoAdInstance (com.google.android.gms:play-services-ads-lite@@19.6.0:63)
  at com.google.android.gms.ads.MobileAds.getRewardedVideoAdInstance (com.google.android.gms:play-services-ads-lite@@19.6.0:12)
  at com.sbugert.rnadmob.RNAdMobRewardedVideoAdModule$1.run (RNAdMobRewardedVideoAdModule.java:150)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:246)
  at android.app.ActivityThread.main (ActivityThread.java:8512)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions