From 50fe4e3340b0002d8dd18415254dc28f08e3deca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 2 Jun 2015 21:58:54 +0200 Subject: [PATCH] BaseParseTestCase#tearDown: more safe --- .../org/intellij/lang/regexp/BaseParseTestCase.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/RegExpSupport/test/org/intellij/lang/regexp/BaseParseTestCase.java b/RegExpSupport/test/org/intellij/lang/regexp/BaseParseTestCase.java index bdac965309c8..fe32c28d3d6c 100644 --- a/RegExpSupport/test/org/intellij/lang/regexp/BaseParseTestCase.java +++ b/RegExpSupport/test/org/intellij/lang/regexp/BaseParseTestCase.java @@ -53,9 +53,13 @@ public abstract class BaseParseTestCase extends UsefulTestCase { @Override protected void tearDown() throws Exception { - myFixture.tearDown(); - myFixture = null; - super.tearDown(); + try { + myFixture.tearDown(); + } + finally { + myFixture = null; + super.tearDown(); + } } public static String getTestDataRoot() {