Summary
After updating to the latest Android Amplitude and Amplitude Experiment SDK to fix a bug with Local Bucketing, we noticed during rollout of a new app version a fresh crash in the AmplitudeClient.
Platform: Android
SDKs:
com.amplitude:android-sdk: 2.39.8
com.amplitude:experiment-android-client: 1.12.0
Stack Trace
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject com.amplitude.api.IdentifyInterceptor.intercept(java.lang.String, org.json.JSONObject)' on a null object reference
at com.amplitude.api.AmplitudeClient.saveEvent(AmplitudeClient.java:1359)
at com.amplitude.api.AmplitudeClient.logEvent(AmplitudeClient.java:1322)
at com.amplitude.api.AmplitudeClient$4.run(AmplitudeClient.java:1180)
at com.amplitude.api.AmplitudeClient.runOnLogThread(AmplitudeClient.java:2463)
at com.amplitude.api.AmplitudeClient.logEventAsync(AmplitudeClient.java:1174)
at com.amplitude.api.AmplitudeClient.logEventAsync(AmplitudeClient.java:1137)
at com.amplitude.api.AmplitudeClient.lambda$null$1(AmplitudeClient.java:400)
at com.amplitude.analytics.connector.EventBridgeImpl.setEventReceiver(EventBridge.kt:41)
at com.amplitude.api.AmplitudeClient.lambda$initializeInternal$2(AmplitudeClient.java:396)
at android.os.Handler.handleCallback(Handler.java:888)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:213)
at android.os.HandlerThread.run(HandlerThread.java:67)
Summary After updating to the latest Android Amplitude and Amplitude Experiment SDK to fix a bug with Local Bucketing, we noticed during rollout of a new app version a fresh crash in the
AmplitudeClient
.Platform: Android SDKs:
Stack Trace