appsflyer-react-native-plugin icon indicating copy to clipboard operation
appsflyer-react-native-plugin copied to clipboard

Android NPE on SDK 6.8.0

Open jarredt opened this issue 1 year ago • 4 comments

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).

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

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

jarredt avatar Aug 22 '22 22:08 jarredt

👋 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.

github-actions[bot] avatar Aug 23 '22 06:08 github-actions[bot]

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

jarredt avatar Aug 23 '22 06:08 jarredt

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

amit-kremer93 avatar Aug 24 '22 08:08 amit-kremer93

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

jarredt avatar Aug 24 '22 19:08 jarredt

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.

jarredt avatar Sep 15 '22 00:09 jarredt