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

Fatal Exception: java.lang.NullPointerException in ProxyBillingActivity (Billing Library 7.0.0) #680

Open
axitasavani opened this issue Sep 10, 2024 · 0 comments

Comments

@axitasavani
Copy link

axitasavani commented Sep 10, 2024

Description

Summary: We are experiencing a crash in the Play Billing Library (version 7.0.0) related to ProxyBillingActivity. The crash occurs due to a NullPointerException in the onCreate() method when trying to invoke PendingIntent.getIntentSender() on a null object.

Crash Details

  • Also attached crash SS

billing_crash

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.*****.******/com.android.billingclient.api.ProxyBillingActivity}: java.lang.NullPointerException: Attempt to invoke
virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3635)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7838)
	at java.lang.reflect.Method.invoke(Method.java)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference
	at com.android.billingclient.api.ProxyBillingActivity.onCreate(com.android.billingclient:billing@@7.0.0:14)
	at android.app.Activity.performCreate(Activity.java:8051)
	at android.app.Activity.performCreate(Activity.java:8031)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7838)
	at java.lang.reflect.Method.invoke(Method.java)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Device Information:

  • Device Brand: Google
  • Device Model: Pixel 3a
  • RAM Free: 1.59 GB
  • Disk Free: 43.73 GB
  • Android Version: 12
  • Orientation: Portrait
  • Rooted: No

Environment Details

  • Platform: Android Java
  • Billing Library Version: 7.0.0
  • Target SDK: 34
  • Minimum SDK: 21
  • Gradle Version: 8.4.2

Expected Behavior:

  • The billing process should proceed without crashing.

Actual Behavior:

  • The app crashes with a NullPointerException when invoking PendingIntent.getIntentSender() during the creation of ProxyBillingActivity.

Impact:

  • This crash is occurring for multiple users, and it affects the app’s revenue generation since it interrupts in-app purchases.

NOTE: Also I have added on Stackvoerflow but there is no reply from team side
Link : https://stackoverflow.com/questions/78710589/fatal-exception-in-google-play-billing-library-nullpointerexception-in-proxybil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant