From 24345bb6b3ec422cccf973a050a3a0a4a25fb143 Mon Sep 17 00:00:00 2001 From: Yunir Salimzyanov Date: Wed, 4 Nov 2020 16:13:39 +0300 Subject: [PATCH] Prevent NPE while fetching muted tests from Teamcity server --- .../src/org/jetbrains/kotlin/test/mutes/TeamCityInteraction.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/tests-mutes/src/org/jetbrains/kotlin/test/mutes/TeamCityInteraction.kt b/compiler/tests-mutes/src/org/jetbrains/kotlin/test/mutes/TeamCityInteraction.kt index bc298e46c90..871db830617 100644 --- a/compiler/tests-mutes/src/org/jetbrains/kotlin/test/mutes/TeamCityInteraction.kt +++ b/compiler/tests-mutes/src/org/jetbrains/kotlin/test/mutes/TeamCityInteraction.kt @@ -23,7 +23,7 @@ internal fun getMutedTestsOnTeamcityForRootProject(rootScopeId: String): List jn.get("assignment").get("text").textValue().startsWith(TAG) } + it.get("mute").filter { jn -> jn.get("assignment").get("text")?.textValue().toString().startsWith(TAG) } } return alreadyMutedTestsOnTeamCity.mapNotNull { jsonObjectMapper.treeToValue(it) }