Skip to content

[Android] NullPointerException for com.adyen.threeds2.internal.dispatchDisplayHint #555

Closed
@StefanWallin

Description

@StefanWallin

Describe the bug
The crash is caused by a NullPointerException in the dispatchDisplayHint.java file, specifically in the static initializer ( <clinit> ) of the com.adyen.threeds2.internal.dispatchDisplayHint class, it's reported as line 3000, but not sure how accurate that is. The exception message "null receiver" indicates that an attempt was made to access a field or method of a null object.

This crash is likely due to a problem with the initialization of the dispatchDisplayHint class. I've thus far had 4 users with a total of 4 events. This is in less than 24 hours running Adyen-React-Native 2.4.1. All crashes have used Nexus 5X and Android 13.

To Reproduce
Steps to reproduce the behavior:

  • Unknown, got this through crash reporting

Expected behavior
I expect NPE's to be guarded against. And input validation for the usage of the APIs you provide to error in development rather than throw NPE's in production if something is missing on our end.

Screenshots

Variant 1

Screenshot 2024-11-22 at 08 43 36

Variant 2

Screenshot 2024-11-22 at 09 03 54

Smartphone:

  • Device: Nexus 5X
  • OS: Android 13
  • Browser: Not relevant
  • Adyen RN Version: After upgrade from 2.2.0 to 2.4.1

Additional context

Crash times are eerily similar, as if triggered by something happening in the Adyen Online environment running a cron job every 12 hours: Update 2025-01-21: No longer relevant, it occurs on all possible times.

  • Nov 22, 2024, 1:58:17 AM
  • Nov 22, 2024, 1:58:03 AM
  • Nov 21, 2024, 1:56:51 PM
  • Nov 21, 2024, 1:56:37 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions