amplitude / experiment-android-client

MIT License
4 stars 2 forks source link

Crash: AmplitudeClient.saveEvent #53

Closed alexandercasal closed 8 months ago

alexandercasal commented 8 months ago

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

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)