EA-72508 - NPE: TestStateStorage.disposeComponent

This commit is contained in:
Dmitry Avdeev
2015-09-07 13:54:22 +03:00
parent 8b1ba67740
commit 8dc229ea66
@@ -56,6 +56,7 @@ public class TestStateStorage implements Disposable {
}
private static final Logger LOG = Logger.getInstance(TestStateStorage.class);
@Nullable
private PersistentHashMap<String, Record> myMap;
private volatile ScheduledFuture<?> myMapFlusher;
@@ -129,6 +130,7 @@ public class TestStateStorage implements Disposable {
public synchronized void dispose() {
myMapFlusher.cancel(false);
myMapFlusher = null;
if (myMap == null) return;
try {
myMap.close();
}