From 373ec23f1125d635602aaba7e82d46e2bacc9215 Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Fri, 2 Dec 2016 15:35:25 +0100 Subject: [PATCH] logging for EA-92487 - IAE: ObjectUtils.notNull --- .../sm/runner/GeneralToSMTRunnerEventsConvertor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralToSMTRunnerEventsConvertor.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralToSMTRunnerEventsConvertor.java index 3a742d3ebb68..bae16c1d0081 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralToSMTRunnerEventsConvertor.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralToSMTRunnerEventsConvertor.java @@ -23,7 +23,6 @@ import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Key; import com.intellij.util.Function; -import com.intellij.util.ObjectUtils; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.TestOnly; @@ -410,7 +409,10 @@ public class GeneralToSMTRunnerEventsConvertor extends GeneralTestEventsProcesso public void onTestIgnored(@NotNull final TestIgnoredEvent testIgnoredEvent) { addToInvokeLater(() -> { - final String testName = ObjectUtils.assertNotNull(testIgnoredEvent.getName()); + final String testName = testIgnoredEvent.getName(); + if (testName == null) { + logProblem("TestIgnored event: no name"); + } String ignoreComment = testIgnoredEvent.getIgnoreComment(); final String stackTrace = testIgnoredEvent.getStacktrace(); final String fullTestName = getFullTestName(testName);