mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-66082 - NPE: UndoManagerImpl.onCommandStarted
This commit is contained in:
@@ -111,6 +111,15 @@ public class UndoManagerImpl extends UndoManager implements Disposable {
|
||||
}
|
||||
|
||||
private void runStartupActivity() {
|
||||
myUndoProviders = myProject == null
|
||||
? Extensions.getExtensions(UndoProvider.EP_NAME)
|
||||
: Extensions.getExtensions(UndoProvider.PROJECT_EP_NAME, myProject);
|
||||
for (UndoProvider undoProvider : myUndoProviders) {
|
||||
if (undoProvider instanceof Disposable) {
|
||||
Disposer.register(this, (Disposable)undoProvider);
|
||||
}
|
||||
}
|
||||
|
||||
myEditorProvider = new FocusBasedCurrentEditorProvider();
|
||||
myCommandProcessor.addCommandListener(new CommandListener() {
|
||||
private boolean myStarted;
|
||||
@@ -147,15 +156,6 @@ public class UndoManagerImpl extends UndoManager implements Disposable {
|
||||
}, this);
|
||||
|
||||
Disposer.register(this, new DocumentUndoProvider(myProject));
|
||||
|
||||
myUndoProviders = myProject == null
|
||||
? Extensions.getExtensions(UndoProvider.EP_NAME)
|
||||
: Extensions.getExtensions(UndoProvider.PROJECT_EP_NAME, myProject);
|
||||
for (UndoProvider undoProvider : myUndoProviders) {
|
||||
if (undoProvider instanceof Disposable) {
|
||||
Disposer.register(this, (Disposable)undoProvider);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isActive() {
|
||||
|
||||
Reference in New Issue
Block a user