mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Avoid disposing process failure when particular extension is removed/replaced
This commit is contained in:
@@ -281,7 +281,11 @@ public class CoreApplicationEnvironment {
|
||||
Disposer.register(myParentDisposable, new Disposable() {
|
||||
@Override
|
||||
public void dispose() {
|
||||
extensionPoint.unregisterExtension(extension);
|
||||
// There is a possible case that particular extension was replaced in particular environment, e.g. Upsource
|
||||
// replaces some IntelliJ extensions.
|
||||
if (extensionPoint.hasExtension(extension)) {
|
||||
extensionPoint.unregisterExtension(extension);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user