appsflyer-react-native-plugin
appsflyer-react-native-plugin copied to clipboard
Android NPE on SDK 6.8.0
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)
- So far, this appears to only be happening on devices running Android 7.1.2 or Android 9.
- The crash happens within a few seconds of our app starting (see attached breadcrumbs from Bugsnag).
👋 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 [email protected]. When submitting the ticket, please specify:
- ✅ your AppsFlyer sign-up (account) email
- ✅ app ID
- ✅ production steps
- ✅ logs
- ✅ code snippets
- ✅ and any additional relevant information.
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
possible duplicate of this: https://github.com/AppsFlyerSDK/appsflyer-android-app/issues/17
@amit-kremer93 should I still email the support team?
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.