diff --git a/test_runner/src/main/kotlin/ftl/gc/GcToolResults.kt b/test_runner/src/main/kotlin/ftl/gc/GcToolResults.kt index da302cb0b5..74806d9459 100644 --- a/test_runner/src/main/kotlin/ftl/gc/GcToolResults.kt +++ b/test_runner/src/main/kotlin/ftl/gc/GcToolResults.kt @@ -146,7 +146,7 @@ object GcToolResults { fun listAllTestCases(results: ToolResultsStep): List { var response = listTestCases(results) - val testCases = response.testCases.toMutableList() + val testCases = response.testCases.orEmpty().toMutableList() while (response.nextPageToken != null) { response = listTestCases(results, response.nextPageToken) testCases += response.testCases ?: emptyList()