question

darrank avatar image
darrank asked darrank edited

Bug in Clover PayActivity

08-13 13:10:54.743  1883  1883 E AndroidRuntime: java.lang.RuntimeException: Unable to destroy activity {com.clover.payment.builder.pay/com.clover.payment.builder.pay.activities.PayActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.FragmentTransaction android.app.FragmentManager.beginTransaction()' on a null object reference
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4204)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4222)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.ActivityThread.-wrap6(ActivityThread.java)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1539)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:154)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6121)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.FragmentTransaction android.app.FragmentManager.beginTransaction()' on a null object reference
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.DialogFragment.dismissInternal(DialogFragment.java:296)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.DialogFragment.dismissAllowingStateLoss(DialogFragment.java:277)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.clover.payment.common.securepay.PaymentUiMessageRequestDialogView.hide(PaymentUiMessageRequestDialogView.java:110)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.clover.payment.builder.pay.activities.PayActivity.onStateChanged(PayActivity.java:2567)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.clover.payment.common.securepay.SecurePayServiceManager.fireOnStateChanged(SecurePayServiceManager.java:742)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.clover.payment.common.securepay.SecurePayServiceManager.setState(SecurePayServiceManager.java:205)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.clover.payment.common.securepay.SecurePayServiceManager.stop(SecurePayServiceManager.java:267)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.clover.payment.common.securepay.SecurePayServiceManager.destroy(SecurePayServiceManager.java:290)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.clover.payment.common.activities.AbstractPaymentActivity.onDestroy(AbstractPaymentActivity.java:322)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at com.clover.payment.builder.pay.activities.PayActivity.onDestroy(PayActivity.java:345)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.Activity.performDestroy(Activity.java:6935)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1155)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4191)
08-13 13:10:54.743  1883  1883 E AndroidRuntime: 	... 9 more


Clover Station 2018
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Frank Faustino avatar image
Frank Faustino Deactivated answered darrank edited

Thank you for bringing this to our attention.


Can you please provide some context? Steps to reproduce the bug and code snippets would be most useful.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

We are a custom tender and we were in the middle of processing a payment. The nature of this bug makes it appear that it could be fixed with a null check.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community