diff --git a/testing/test-utils/src/main/kotlin/net/corda/testing/Measure.kt b/testing/test-utils/src/main/kotlin/net/corda/testing/Measure.kt index 91eaecf0a0..a44c28ade2 100644 --- a/testing/test-utils/src/main/kotlin/net/corda/testing/Measure.kt +++ b/testing/test-utils/src/main/kotlin/net/corda/testing/Measure.kt @@ -26,14 +26,15 @@ private fun measure(paramIterables: List>, kCallable: KCallab val kParameters = kCallable.parameters return iterateLexical(paramIterables).map { params -> MeasureResult( - parameters = params.mapIndexed { index, param -> Pair(kParameters[index].name!!, param) }, + // For example an underscore param in a lambda does not have a name: + parameters = params.mapIndexed { index, param -> Pair(kParameters[index].name, param) }, result = call(params.toTypedArray()) ) } } data class MeasureResult( - val parameters: List>, + val parameters: List>, val result: R )