mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Avoid incorrect state exception when disposing default project (IDEA-242114)
GitOrigin-RevId: 1c14462738f32cc3999bc990e63c21251e7f3cd7
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user