Skip to content

3ds crash: nullPointerException - com.adyen.threeds2.internal.ui.activity.getDeviceData #2302

@thiago-you

Description

@thiago-you

Description

App crashes on version v5.9.0 when the user navigates to the ChallengeScreen and quickly minimizes the app. The crash seems to occur if the app is minimized before the initial screen animation completes.

Steps to Reproduce

  1. Can you consistently reproduce this issue? Yes
  2. Steps:
    1. Launch the app (production environment).
    2. Navigate to the ChallengeScreen.
    3. Within 1 second—before the screen finishes loading or any initial animation completes—minimize the app (e.g., press the Home or Recent Apps button).
    4. Observe the crash.

Logs and Crash Reports

Firebase Log:

   Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setAlpha(float)' on a null object reference
       at android.view.View$2.setValue(View.java:31484)
       at android.view.View$2.setValue(View.java:31481)
       at android.animation.PropertyValuesHolder$FloatPropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:1379)
       at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:1001)
       at android.animation.ValueAnimator.setCurrentFraction(ValueAnimator.java:780)
       at android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:743)
       at android.animation.ValueAnimator.start(ValueAnimator.java:1174)
       at android.animation.ValueAnimator.start(ValueAnimator.java:1193)
       at android.animation.ObjectAnimator.start(ObjectAnimator.java:864)
       at android.animation.ValueAnimator.startWithoutPulsing(ValueAnimator.java:1186)
       at android.animation.AnimatorSet.handleAnimationEvents(AnimatorSet.java:1324)
       at android.animation.AnimatorSet.startAnimation(AnimatorSet.java:1414)
       at android.animation.AnimatorSet.start(AnimatorSet.java:776)
       at android.animation.AnimatorSet.start(AnimatorSet.java:716)
       at com.adyen.threeds2.internal.ui.activity.getDeviceData.dg_(:303)
       at com.adyen.threeds2.internal.ui.activity.getDeviceData.getSDKTransactionID(SourceFile:242)
       at com.adyen.threeds2.internal.ui.activity.getDeviceData.getSDKReferenceNumber(SourceFile:183)
       at com.adyen.threeds2.internal.ui.activity.getDeviceData.getSDKTransactionID(SourceFile:1)
       at com.adyen.threeds2.internal.ui.activity.getDeviceData.AuthenticationRequestParameters(SourceFile:129)
       at com.adyen.threeds2.internal.ui.activity.ChallengeActivity.de_(:277)
       at com.adyen.threeds2.internal.ui.activity.ChallengeActivity.onNewIntent(:121)
       at android.app.Activity.onNewIntent(Activity.java:2472)
       at android.app.Activity.performNewIntent(Activity.java:9223)
       at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1664)
       at android.app.Instrumentation.internalCallActivityOnNewIntent(Instrumentation.java:1685)
       at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1673)
       at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:4614)
       at android.app.ActivityThread.handleNewIntent(ActivityThread.java:4624)
       at android.app.servertransaction.NewIntentItem.execute(NewIntentItem.java:58)
       at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:60)
       at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:179)
       at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:114)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:86)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2902)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loopOnce(Looper.java:282)
       at android.os.Looper.loop(Looper.java:387)
       at android.app.ActivityThread.main(ActivityThread.java:9500)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)
Image

Additional Context

  • Environment constraint: Unable to upgrade the SDK beyond v5.9.0 due to current project restrictions.
  • Previous version: The issue does not occur on v5.8.0.
  • Suspected cause: Minimizing the app before the animation or screen load finishes may be triggering the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug reportIndicates that issue has been marked as a possible bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions