From 4a796c69132e2317cacbb26c25ae23e9edf324eb Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Tue, 20 Oct 2015 17:10:56 +0300 Subject: [PATCH] prevent read/write after close --- .../src/com/intellij/execution/TestStateStorage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/execution/TestStateStorage.java b/platform/lang-impl/src/com/intellij/execution/TestStateStorage.java index ca37cdb18f20..4a7fa538a669 100644 --- a/platform/lang-impl/src/com/intellij/execution/TestStateStorage.java +++ b/platform/lang-impl/src/com/intellij/execution/TestStateStorage.java @@ -146,11 +146,13 @@ public class TestStateStorage implements Disposable { if (myMap == null) return; try { myMap.close(); - myMap = null; } catch (IOException e) { LOG.error(e); } + finally { + myMap = null; + } } private void thingsWentWrongLetsReinitialize(IOException e, String message) {