Skip to content

Commit 87ab3a9

Browse files
authored
fix: don't use plugin's analytics object if seetup threw an Exception because it might not be initiated. (#223)
1 parent 9103e2b commit 87ab3a9

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/com/segment/analytics/kotlin/core/platform

1 file changed

+1
-1
lines changed

core/src/main/java/com/segment/analytics/kotlin/core/platform/Timeline.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ internal class Timeline {
7171
Telemetry.INTEGRATION_ERROR_METRIC, t.stackTraceToString()) {
7272
it["error"] = t.toString()
7373
it["plugin"] = "${plugin.type}-${plugin.javaClass}"
74-
it["writekey"] = plugin.analytics.configuration.writeKey
74+
it["writekey"] = analytics.configuration.writeKey
7575
it["message"] = "Exception executing plugin"
7676
}
7777
}

0 commit comments

Comments
 (0)