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

Crash with a wrong OTP code input #145

Open
OHoussein opened this issue Nov 23, 2022 · 0 comments
Open

Crash with a wrong OTP code input #145

OHoussein opened this issue Nov 23, 2022 · 0 comments
Assignees
Labels

Comments

@OHoussein
Copy link

OHoussein commented Nov 23, 2022

Problem/Motivation

Crash when the user put a wrong OTP input code.
Stacktrace

E/AndroidRuntime: FATAL EXCEPTION: main
    java.lang.NullPointerException
        at android.content.res.XmlBlock.nativeGetStyleAttribute(Native Method)
        at android.content.res.XmlBlock.access$1500(XmlBlock.java:41)
        at android.content.res.XmlBlock$Parser.getStyleAttribute(XmlBlock.java:459)
        at android.content.res.Resources$Theme.getExplicitStyle(Resources.java:1937)
        at android.view.View.retrieveExplicitStyle(View.java:7009)
        at android.view.View.<init>(View.java:5893)
        at android.view.ViewGroup.<init>(ViewGroup.java:715)
        at android.widget.LinearLayout.<init>(LinearLayout.java:254)
        at android.widget.LinearLayout.<init>(LinearLayout.java:250)
        at android.widget.LinearLayout.<init>(LinearLayout.java:246)
        at co.paystack.android.design.widget.Indicator.<init>(Indicator.java:59)
        at co.paystack.android.design.widget.PinPadView.createIndicators(PinPadView.java:481)
        at co.paystack.android.design.widget.PinPadView.setPinLength(PinPadView.java:432)
        at co.paystack.android.ui.OtpActivity$1.onPinChanged(OtpActivity.java:40)
        at co.paystack.android.design.widget.PinPadView.updatePin(PinPadView.java:470)
        at co.paystack.android.design.widget.PinPadView.access$200(PinPadView.java:51)
        at co.paystack.android.design.widget.PinPadView$1.onButtonClick(PinPadView.java:533)
        at co.paystack.android.design.widget.PinPadButton.dispatchTouchEvent(PinPadButton.java:234)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3920)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:3594)

Repeatable

Always

Steps to repeat:

  1. Go to the payment screen
  2. Use this test card number 507850785078507804 (PIN + Phone + OTP validation)
  3. Fill the expiry and CVV inputs
  4. put the pin code (0000)
  5. put any wrong OTP code

Expected Results:

at least an error message

Actual Results:

The app crashes

Recrod

crash_paystack.mp4
@OHoussein OHoussein changed the title Crash a wrong OTP code input Crash with a wrong OTP code input Nov 24, 2022
@michael-paystack michael-paystack self-assigned this Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants