Avoid incorrect state exception when disposing default project (IDEA-242114)

GitOrigin-RevId: 1c14462738f32cc3999bc990e63c21251e7f3cd7
This commit is contained in:
Dmitry Jemerov
2020-06-02 21:35:40 +03:00
committed by intellij-monorepo-bot
parent d9a6e42359
commit 84cec3e4e3
@@ -34,7 +34,7 @@ abstract class Timed<T> implements Disposable {
public synchronized void dispose() {
final Object t = myT;
myT = null;
if (t instanceof Disposable) {
if (t instanceof Disposable && !Disposer.isDisposed((Disposable) t)) {
Disposer.dispose((Disposable)t);
}