Skip to content

Commit 5e4daa5

Browse files
authored
Summary fix (#127)
1 parent d4b9cfc commit 5e4daa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

model/src/main/kotlin/org/digma/intellij/plugin/model/rest/insights/SpanDurationsPercentile.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ constructor(
1515
val previousDuration: Duration?,
1616
val changeTime: Timestamp?,
1717
val changeVerified: Boolean?,
18-
val traceIds: List<String>,
18+
val traceIds: List<String>?,
1919
)

src/main/kotlin/org/digma/intellij/plugin/ui/list/insights/SpanPanels.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ fun buildTraceSample(percentile: SpanDurationsPercentile): TraceSample {
318318
val percentileName = "P${(percentile.percentile * 100).toInt()}"
319319
var traceId = ""
320320
if (!percentile.traceIds.isNullOrEmpty()) {
321-
traceId = percentile.traceIds.first()
321+
traceId = percentile.traceIds!!.first()
322322
}
323323
return TraceSample(percentileName, traceId)
324324
}

0 commit comments

Comments
 (0)