From c6d7083c359c75595e9db432a71d05baa4152ebe Mon Sep 17 00:00:00 2001 From: Viktoria Shirunova Date: Tue, 23 Apr 2019 16:07:23 +0300 Subject: [PATCH] [gui-test] ExtendedButtonFixture: clickUntil - process another ignored exception GitOrigin-RevId: ee3d4607c09e47d8383e50a1682c208158af4e6b --- .../fixtures/extended/ExtendedButtonFixture.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/extended/ExtendedButtonFixture.kt b/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/extended/ExtendedButtonFixture.kt index 81c0a1fc236f..2cadd5d8496d 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/extended/ExtendedButtonFixture.kt +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/extended/ExtendedButtonFixture.kt @@ -45,6 +45,11 @@ class ExtendedButtonFixture(robot: Robot, button: JButton) : JButtonFixture(robo catch (ignore: IllegalStateException){ true } + catch (ignore: NullPointerException) { + // if button disappears at once after getting the NPE from fest might occur + // but it's ok - nothing to wait anymore + true + } } }