AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
284 stars 198 forks source link

Android NPE on SDK 6.8.0 #412

Closed jarredt closed 2 years ago

jarredt commented 2 years ago

Report

Plugin Version

6.8.0

On what Platform are you having the issue?

Android

What did you do?

Published app including version 6.8.0 of SDK.

What did you expect to happen?

Not see crash reports

What happened instead?

See crash reports

Please provide any other relevant information.

Stack trace:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replaceAll(java.lang.String, java.lang.String)' on a null object reference
        at com.appsflyer.internal.AFd1uSDK.values(unknown:4121)
        at com.appsflyer.internal.AFc1hSDK.AFInAppEventType(unknown:94)
        at com.appsflyer.internal.AFc1lSDK$4.run(unknown:109)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)

Screen Shot 2022-08-22 at 3 20 57 PM

Screen Shot 2022-08-22 at 3 20 49 PM

github-actions[bot] commented 2 years ago

πŸ‘‹ Hi @jarredt and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

jarredt commented 2 years ago

Note: we went from 6.6.1 to 6.8.0, so the issue may have been introduced in 6.7.0 or 6.8.0.

The stack trace makes me think it's related to this behavior introduced in 6.7.0: https://support.appsflyer.com/hc/en-us/articles/6971914107025-Bulletin-Adding-a-priority-queue-to-the-Android-SDK

amit-kremer93 commented 2 years ago

possible duplicate of this: https://github.com/AppsFlyerSDK/appsflyer-android-app/issues/17

jarredt commented 2 years ago

@amit-kremer93 should I still email the support team?

jarredt commented 2 years ago

According to this, this issue was likely fixed in 6.8.1: https://github.com/AppsFlyerSDK/appsflyer-android-app/issues/17#issuecomment-1246033374. I'll close this for now while I update, but will reopen if we keep seeing in production.