Skip to content

[Android] crash on isGooglePlayServicesAvailable with getPackageName() on a null object reference #33235

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

Closed
deeppandya opened this issue Sep 25, 2023 · 0 comments · Fixed by brave/brave-core#20281
Assignees
Labels
crash OS/Android Fixes related to Android browser functionality priority/P1 A very extremely bad problem. We might push a hotfix for it. QA/No release-notes/include

Comments

@deeppandya
Copy link
Contributor

deeppandya commented Sep 25, 2023

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 (GooglePlayServicesUtilLight.java:5)
  at com.google.android.gms.common.GoogleApiAvailabilityLight.isGooglePlayServicesAvailable (com.google.android.gms:play-services-basement@@18.1.0:2)
  at com.google.android.gms.common.GoogleApiAvailability.isGooglePlayServicesAvailable (com.google.android.gms:play-services-base@@18.0.1:2)
  at org.chromium.gms.ChromiumPlayServicesAvailability.isGooglePlayServicesAvailable (ChromiumPlayServicesAvailability.java:33)
  at org.chromium.chrome.browser.vpn.utils.BraveVpnUtils.isVpnFeatureSupported (BraveVpnUtils.java:292)
  at org.chromium.chrome.browser.settings.BraveMainPreferencesBase.rearrangePreferenceOrders (BraveMainPreferencesBase.java:252)
  at org.chromium.chrome.browser.settings.BraveMainPreferencesBase.updateBravePreferences (BraveMainPreferencesBase.java:203)
  at org.chromium.chrome.browser.settings.BraveMainPreferencesBase.lambda$onResume$0 (BraveMainPreferencesBase.java:124)
  at android.os.Handler.handleCallback (Handler.java:873)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:216)
  at android.app.ActivityThread.main (ActivityThread.java:7211)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:975)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash OS/Android Fixes related to Android browser functionality priority/P1 A very extremely bad problem. We might push a hotfix for it. QA/No release-notes/include
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants